X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=0.2.1%2Finc%2Fmodules%2Fadmin%2Fadmin-inc.php;h=2b957078b5ce73864c64e80c69404a9a42ef396b;hp=487eb2c3c7fec804f37a9d7d6a5db32e0161a1cd;hb=4ac856c74ab07fc19ab64039904f2075c8f35b40;hpb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;ds=inline diff --git a/0.2.1/inc/modules/admin/admin-inc.php b/0.2.1/inc/modules/admin/admin-inc.php index 487eb2c3c7..2b957078b5 100644 --- a/0.2.1/inc/modules/admin/admin-inc.php +++ b/0.2.1/inc/modules/admin/admin-inc.php @@ -713,10 +713,10 @@ function ADMIN_CHECK_MENU_MODE() return $MODE; } // Change activation status -function ADMIN_CHANGE_ACTIVATION_STATUS (array $IDs, $table, $row, $idRow = "id") { +function ADMIN_CHANGE_ACTIVATION_STATUS ($IDs, $table, $row, $idRow = "id") { global $CONFIG; $cnt = 0; $newStatus = "Y"; - if (count($IDs) > 0) { + if ((is_array($IDs)) && (count($IDs) > 0)) { // "Walk" all through and count them foreach ($IDs as $id=>$selected) { // Secure the ID number @@ -755,10 +755,10 @@ function ADMIN_CHANGE_ACTIVATION_STATUS (array $IDs, $table, $row, $idRow = "id" } } // Delete rows by given ID numbers -function ADMIN_DELETE_ENTRIES_CONFIRM (array $IDs, $table, $row, array $columns = array(), array $filterFunctions = array(), $deleteNow=false, $idRow="id") { +function ADMIN_DELETE_ENTRIES_CONFIRM ($IDs, $table, $row, $columns = array(), $filterFunctions = array(), $deleteNow=false, $idRow="id") { global $CONFIG; $OUT = ""; $SW = 2; - if (count($IDs) > 0) { + if ((is_array($IDs)) && (count($IDs) > 0)) { // "Walk" through all entries and count them if ($deleteNow) { // Delete them