]> git.mxchange.org Git - mailer.git/commitdiff
Hotfix for rallye
authorRoland Häder <roland@mxchange.org>
Sat, 27 Sep 2008 18:49:59 +0000 (18:49 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 27 Sep 2008 18:49:59 +0000 (18:49 +0000)
inc/libs/rallye_functions.php

index 36e85f6c076078699c6468cbd70664f3f98cdedd..1b4798f07b0d6096496c3b63b188ca95c4b86167 100644 (file)
@@ -358,13 +358,19 @@ function RALLYE_EXPIRE_RALLYES($result)
        global $DATA, $_CONFIG;
 
        // Latest online time
-       $since = 0;
+       $since = 0; $min_users = 0; $min_prices = 0;
        if (EXT_IS_ACTIVE("autopurge")) {
                $since = $_CONFIG['ap_inactive_since'];
        } // END - if
 
        // Load rallye data
-       list($id, $title, $start, $end, $notify, $min_users, $min_prices) = SQL_FETCHROW($result);
+       if (GET_EXT_VERSION("rallye") >= "0.2.0") {
+               list($id, $title, $start, $end, $notify, $min_users, $min_prices) = SQL_FETCHROW($result);
+       } else {
+               list($id, $title, $start, $end, $notify) = SQL_FETCHROW($result);
+       }
+
+       // Free result
        SQL_FREERESULT($result);
 
        // Load users array (!) with assigned prices
@@ -753,7 +759,7 @@ function RALLYE_GET_REFCOUNT($uid, $old=0)
 {
        global $_CONFIG, $cacheArray;
        // Check current refs
-       if (GET_EXT_VERSION("cache") >= "0.1.2")
+       if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isset($cacheArray['ref_system'])))
        {
                // Get refs from cache
                $cnt = 0;