aboutsummaryrefslogtreecommitdiffstats
path: root/www/phpbb/files/patch-includes-sessions.php
blob: bb15b73c06a15561faf22355bf37709b05044577 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- includes/sessions.php.orig  Sat May 14 05:04:00 2005
+++ includes/sessions.php   Sun May 15 18:53:48 2005
@@ -167,7 +167,7 @@
        $sql = "INSERT INTO " . SESSIONS_TABLE . "
            (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin)
            VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login, $admin)";
-       if ( !$db->sql_query($sql) )
+       if ( $user_id != ANONYMOUS && !$db->sql_query($sql) )
        {
            message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql);
        }
@@ -421,4 +421,4 @@
    return $url;
 }
 
-?>
\ No newline at end of file
+?>