1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Query executed at wrong time

This commit is contained in:
e107steved 2007-05-27 18:57:44 +00:00
parent 9295ce93bc
commit bd1a0b6edd

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu.php,v $
| $Revision: 1.4 $
| $Date: 2007-01-20 16:27:28 $
| $Author: mrpete $
| $Revision: 1.5 $
| $Date: 2007-05-27 18:57:36 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -72,8 +72,8 @@ if (USER == TRUE || ADMIN == TRUE)
$text = $tp->parseTemplate($LOGIN_MENU_LOGGED, true, $login_menu_shortcodes);
if (!$sql->db_Select('online', 'online_ip', "`online_ip` = '{$ip}' AND `online_user_id` = '0' "))
{
if ($sql->db_Select('online', 'online_ip', "`online_ip` = '{$ip}' AND `online_user_id` = '0' "))
{ // User now logged in - delete 'guest' record (tough if several users on same IP)
$sql->db_Delete('online', "`online_ip` = '{$ip}' AND `online_user_id` = '0' ");
}