]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/admin-inc.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / admin-inc.php
index 76d9c6666c1b3979292b222b13ea4f75786613b0..914622a461b6ea7edb2b6a54fd1b1ea298295451 100644 (file)
@@ -52,7 +52,7 @@ function addAdminAccount ($adminLogin, $passHash, $adminEmail) {
                array($adminLogin), __FUNCTION__, __LINE__);
 
        // Is the entry there?
-       if (SQL_NUMROWS($result) == '0') {
+       if (SQL_HASZERONUMS($result)) {
                // Ok, let's create the admin login
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins` (`login`, `password`, `email`) VALUES ('%s', '%s', '%s')",
                        array(
@@ -1091,7 +1091,7 @@ function sendAdminPasswordResetLink ($email) {
                array($email), __FUNCTION__, __LINE__);
 
        // Is there an account?
-       if (SQL_NUMROWS($result) == '0') {
+       if (SQL_HASZERONUMS($result)) {
                // No account found!
                return getMessage('ADMIN_NO_LOGIN_WITH_EMAIL');
        } // END - if