From: quix0r Date: Sat, 30 Jun 2012 16:02:04 +0000 (+0000) Subject: Fix for latest PHP 5.4.x changes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4988286bac99f576b0dd411a7dbb9b6975d696fd;p=mailer.git Fix for latest PHP 5.4.x changes --- diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index f10335f044..5195c0c1e7 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -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