// 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);
// 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);
// 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__);
$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__);