From: Roland Häder Date: Sun, 12 Oct 2008 00:37:19 +0000 (+0000) Subject: Fix for surfbar if no account has depleted points X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=4e7273a155c9afa62cf0e094f96e206455b8bdde Fix for surfbar if no account has depleted points --- diff --git a/inc/databases.php b/inc/databases.php index 54cff4d34b..f54c7a929f 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "493"); +define('CURR_SVN_REVISION', "494"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/libs/refback_functions.php b/inc/libs/refback_functions.php index 0df8e05084..83aa8a9e36 100644 --- a/inc/libs/refback_functions.php +++ b/inc/libs/refback_functions.php @@ -267,7 +267,7 @@ function GET_USER_REFS ($uid, $level) { $ADD = ""; $refs = array(); - // Do we have nickname installed? + // Do we have nickname extension installed? if (EXT_IS_ACTIVE("nickname")) { $ADD = ", d.nickname"; } // END - if diff --git a/inc/libs/surfbar_functions.php b/inc/libs/surfbar_functions.php index a5f121de43..4e7497906f 100644 --- a/inc/libs/surfbar_functions.php +++ b/inc/libs/surfbar_functions.php @@ -915,7 +915,11 @@ LIMIT 1", // Determine which user hash no more points left function SURFBAR_DETERMINE_DEPLETED_USERIDS ($limit=0) { // Init array - $UIDs = array(); + $UIDs = array( + 'uid' => array(), + 'points' => array(), + 'notified' => array(), + ); // Do we have a current user id? if ((IS_MEMBER()) && ($limit == 0)) {