projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c43d32
)
Hotfix for rallye
author
Roland Häder
<roland@mxchange.org>
Sat, 27 Sep 2008 18:49:59 +0000
(18:49 +0000)
committer
Roland Häder
<roland@mxchange.org>
Sat, 27 Sep 2008 18:49:59 +0000
(18:49 +0000)
inc/libs/rallye_functions.php
patch
|
blob
|
history
diff --git
a/inc/libs/rallye_functions.php
b/inc/libs/rallye_functions.php
index 36e85f6c076078699c6468cbd70664f3f98cdedd..1b4798f07b0d6096496c3b63b188ca95c4b86167 100644
(file)
--- a/
inc/libs/rallye_functions.php
+++ b/
inc/libs/rallye_functions.php
@@
-358,13
+358,19
@@
function RALLYE_EXPIRE_RALLYES($result)
global $DATA, $_CONFIG;
// Latest online time
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
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
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
{
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;
{
// Get refs from cache
$cnt = 0;