X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fadmins_functions.php;h=ed45da64a1bd0243017938599ffad490b712b6e7;hp=076213c0aea5ae2ba63b682c6d521b55a8245fbd;hb=9afd6ec5878544a7982c50ed9c0dd7de37606d5b;hpb=3c23bfaee208fa12adf5cdd9d8e9882612199d03 diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index 076213c0ae..ed45da64a1 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -156,7 +156,7 @@ LIMIT 1", // Change a lot admin account function adminsChangeAdminAccount ($postData) { // Begin the update - $cache_update = 0; + $cache_update = '0'; foreach ($postData['login'] as $id => $login) { // Secure id number $id = bigintval($id); @@ -339,7 +339,7 @@ function adminsDeleteAdminAccount ($postData) { // Remove the given accounts function adminsRemoveAdminAccount ($postData) { // Begin removal - $cache_update = 0; + $cache_update = '0'; foreach ($postData['sel'] as $id => $del) { // Secure id number $id = bigintval($id); @@ -409,7 +409,7 @@ function sendAdminsEmails ($subj, $template, $content, $UID) { // Check which admin shall receive this mail $result = SQL_QUERY_ESC("SELECT `admin_id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `admin_id` ASC", array($template), __FUNCTION__, __LINE__); - if (SQL_NUMROWS($result) == 0) { + if (SQL_NUMROWS($result) == '0') { // Create new entry (to all admins) SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_mails` (`admin_id`, `mail_template`) VALUES (0, '%s')", array($template), __FUNCTION__, __LINE__); @@ -441,7 +441,7 @@ function sendAdminsEmails ($subj, $template, $content, $UID) { $UID )); } - } elseif ($adminId == 0) { + } elseif ($adminId == '0') { // Select all email adresses $result = SQL_QUERY("SELECT `email` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `id` ASC", __FUNCTION__, __LINE__);