]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/admins_functions.php
More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / libs / admins_functions.php
index 427353749031c0d932eb0bb9847621432ae1d536..73362ec6db4c53bdca4cf6b32d058b8036268e1e 100644 (file)
@@ -164,7 +164,7 @@ function adminsChangeAdminAccount ($postData) {
                // When both passwords match update admin account
                if ($postData['pass1'][$id] == $postData['pass2'][$id]) {
                        // Save only when both passwords are the same (also when they are empty)
-                       $add = ''; $cache_update = '1';
+                       $add = ''; $cache_update = 1;
 
                        // Generate hash
                        $hash = generateHash($postData['pass1'][$id]);
@@ -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__);