Commit 6990e9d6 authored by sept_7's avatar sept_7

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

parent 504395ca
......@@ -146,13 +146,13 @@ if(!empty($videoId) && isset($_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);
}
}
if($kentryType == "mix"){
for($i=0; $i < count($videoId); $i++) {
$kclient->mixing->delete($videoId[$i]);
foreach( $videoId as $vi ) {
$kclient->mixing->delete($vi);
}
}
......
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