global $DATA, $_CONFIG;
// Latest online time
- $since = 0; $min_users = 0; $min_prices = 0;
+ $since = 0;
if (EXT_IS_ACTIVE("autopurge")) {
$since = $_CONFIG['ap_inactive_since'];
} // END - if
// Load rallye data
- 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
+ list($id, $title, $start, $end, $notify, $min_users, $min_prices) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
// Load users array (!) with assigned prices
{
global $_CONFIG, $cacheArray;
// Check current refs
- if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isset($cacheArray['ref_system'])))
+ if (GET_EXT_VERSION("cache") >= "0.1.2")
{
// Get refs from cache
$cnt = 0;
FROM "._MYSQL_PREFIX."_refsystem AS s
LEFT JOIN "._MYSQL_PREFIX."_refdepths AS d
ON s.level=d.level
-WHERE s.userid=%s AND s.level=0", array(bigintval($uid)), __FILE__, __LINE__);
+WHERE s.userid=%s AND s.level=1", array(bigintval($uid)), __FILE__, __LINE__);
list($cnt) = SQL_FETCHROW($result_ref);
SQL_FREERESULT($result_ref);
if (empty($cnt))