mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Query executed at wrong time
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu.php,v $
|
||||||
| $Revision: 1.4 $
|
| $Revision: 1.5 $
|
||||||
| $Date: 2007-01-20 16:27:28 $
|
| $Date: 2007-05-27 18:57:36 $
|
||||||
| $Author: mrpete $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -72,8 +72,8 @@ if (USER == TRUE || ADMIN == TRUE)
|
|||||||
|
|
||||||
$text = $tp->parseTemplate($LOGIN_MENU_LOGGED, true, $login_menu_shortcodes);
|
$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' ");
|
$sql->db_Delete('online', "`online_ip` = '{$ip}' AND `online_user_id` = '0' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user