From 4e7273a155c9afa62cf0e094f96e206455b8bdde Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 12 Oct 2008 00:37:19 +0000 Subject: [PATCH] Fix for surfbar if no account has depleted points --- inc/databases.php | 2 +- inc/libs/refback_functions.php | 2 +- inc/libs/surfbar_functions.php | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) 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)) { -- 2.39.5