Fix for latest PHP 5.4.x changes
[mailer.git] / inc / wrapper-functions.php
index f10335f0442327aee498725935b360b2ab02f77d..5195c0c1e7c716abe6bffe17f24367b875cb2994 100644 (file)
@@ -1232,6 +1232,12 @@ function getTotalRandomRefidUser () {
 
 // Is given userid valid?
 function isValidUserId ($userid) {
+       // Handle NULL
+       if (is_null($userid)) {
+               // Do not handle this as of below isset() will always return false
+               return false;
+       } // END - if
+
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Check it out