From: Roland Häder 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/?p=mailer.git;a=commitdiff_plain;h=f0e095401c24cf94f760de965c39f7ae35d32d25 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