X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fadmin-inc.php;h=083d62be338dec1393d0b812e153cf8a04d082a9;hp=0f7b4897f77c582b048c75ed197ccc9bc61d519e;hb=682edce003a1a91f66fb8e2212d7fdb591379843;hpb=e523b69ecd6c7f37ae1cb36872537073b40c0e27 diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index 0f7b4897f7..083d62be33 100644 --- a/inc/modules/admin/admin-inc.php +++ b/inc/modules/admin/admin-inc.php @@ -685,7 +685,7 @@ function adminGetMenuMode () { // Change activation status function adminChangeActivationStatus ($IDs, $table, $row, $idRow = 'id') { - $cnt = '0'; $newStatus = 'Y'; + $count = '0'; $newStatus = 'Y'; if ((is_array($IDs)) && (count($IDs) > 0)) { // "Walk" all through and count them foreach ($IDs as $id => $selected) { @@ -711,7 +711,7 @@ function adminChangeActivationStatus ($IDs, $table, $row, $idRow = 'id') { array($table, $row, $newStatus, $idRow, $id), __FUNCTION__, __LINE__); // Count up affected rows - $cnt += SQL_AFFECTEDROWS(); + $count += SQL_AFFECTEDROWS(); } // END - if // Free the result @@ -720,7 +720,7 @@ function adminChangeActivationStatus ($IDs, $table, $row, $idRow = 'id') { } // END - foreach // Output status - loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_STATUS_CHANGED'), $cnt, count($IDs))); + loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_STATUS_CHANGED'), $count, count($IDs))); } else { // Nothing selected! loadTemplate('admin_settings_saved', false, '{--ADMIN_NOTHING_SELECTED_CHANGE--}');