]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Possible fix #2 for reflink
[mailer.git] / inc / wrapper-functions.php
index c7e4978ce06d380518dae021891ee4699ff816be..e9bd29b25ece037df65e7e7963af51f040d72b62 100644 (file)
@@ -738,8 +738,8 @@ function getUserDataArray () {
 // Checks if the user data is valid, this may indicate that the user has logged
 // in, but you should use isMember() if you want to find that out.
 function isUserDataValid () {
-       // User id should not be zero
-       if (getCurrentUserId() < 1) debug_report_bug(__FUNCTION__.': User id is zero.');
+       // User id should not be zero so abort here
+       if (getCurrentUserId() < 1) return false;
 
        // Is the array there and filled?
        return ((isset($GLOBALS['user_data'][getCurrentUserId()])) && (count($GLOBALS['user_data'][getCurrentUserId()]) > 1));