Fix for undefined index 'last'
authorRoland Häder <roland@mxchange.org>
Tue, 9 Dec 2008 18:06:07 +0000 (18:06 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 9 Dec 2008 18:06:07 +0000 (18:06 +0000)
inc/databases.php
inc/modules/admin/what-list_bonus.php

index 17f9b711eef24fc53ca2aef3fe8476e2c8a748d3..0a11142c3332e8ff9644f1deaf24fb0e51dc005c 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "611");
+define('CURR_SVN_REVISION', "612");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index d95b4de3f27bca0c55dc041bbd953c9b87dddafa..7030cade333af41ef57b4274fea1706ff931cee4 100644 (file)
@@ -74,7 +74,7 @@ if ($_CONFIG['bonus_active'] == "Y") {
        }
 
        // Check if at least one is in the active rallye
        }
 
        // Check if at least one is in the active rallye
-       $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, ".$USE." AS points, last_online
+       $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, ".$USE." AS points, last_online AS last
 FROM "._MYSQL_PREFIX."_user_data
 WHERE status='CONFIRMED' AND ".$USE." > 0".$LAST."
 ORDER BY points DESC, last_online DESC, userid",
 FROM "._MYSQL_PREFIX."_user_data
 WHERE status='CONFIRMED' AND ".$USE." > 0".$LAST."
 ORDER BY points DESC, last_online DESC, userid",