From f0e095401c24cf94f760de965c39f7ae35d32d25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 30 Jun 2012 16:02:04 +0000 Subject: [PATCH 1/1] Fix for latest PHP 5.4.x changes --- inc/wrapper-functions.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2