]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
SQL_FETCHROW()->SQL_FETCHARRAY() and other improvements
[mailer.git] / inc / mysql-manager.php
index 44e848747020d5efa5fb0dd5cc999045bfc4bde4..3ec60ca2d5eed0b01d4c1a9e28966c75cc655ec1 100644 (file)
@@ -702,6 +702,11 @@ function fetchUserData ($userid, $column = 'userid') {
 
 // This patched function will reduce many SELECT queries for the specified or current admin login
 function isAdmin ($adminLogin = '') {
+       // No admin in installation phase!
+       if ((isInstallationPhase()) || (!isAdminRegistered())) {
+               return false;
+       } // END - if
+
        // Init variables
        $ret = false;
        $passCookie = '';
@@ -1921,7 +1926,7 @@ function generateReceiverList ($cat, $receiver, $mode = '') {
        } // END - if
 
        // Exclude users in holiday?
-       if (getExtensionVersion('holiday') >= '0.1.3') {
+       if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
                // Add something for the holiday extension
                $CAT_WHERE .= " AND d.`holiday_active`='N'";
        } // END - if