Commit 504395ca authored by sept_7's avatar sept_7

[ENH] coding style: avoid function in for loop statement, PHPCS

parent 89c37374
......@@ -105,15 +105,15 @@ switch($_REQUEST['action']){
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
if($kentryType == "media"){
for($i=0; $i < count($videoId); $i++) {
$kclient->media->delete($videoId[$i]);
foreach( $videoId as $vi ) {
$kclient->media->delete($vi);
}
header ('Location: tiki-list_kaltura_entries.php?list=media');
die;
}
if($kentryType == "mix"){
for($i=0; $i < count($videoId); $i++) {
$kclient->mixing->delete($videoId[$i]);
foreach( $videoId as $vi ) {
$kclient->mixing->delete($vi);
}
header ('Location: tiki-list_kaltura_entries.php?list=mix');
die;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment