summaryrefslogtreecommitdiff
path: root/www/phpbb/files/patch-includes-sessions.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/phpbb/files/patch-includes-sessions.php')
-rw-r--r--www/phpbb/files/patch-includes-sessions.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/phpbb/files/patch-includes-sessions.php b/www/phpbb/files/patch-includes-sessions.php
index 697a1241c6ae..bb15b73c06a1 100644
--- a/www/phpbb/files/patch-includes-sessions.php
+++ b/www/phpbb/files/patch-includes-sessions.php
@@ -1,15 +1,15 @@
---- includes/sessions.php.orig Sun Jul 20 17:42:23 2003
-+++ includes/sessions.php Thu May 6 12:02:56 2004
-@@ -147,7 +147,7 @@
+--- 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)
- VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login)";
+ (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);
}
-@@ -380,4 +380,4 @@
+@@ -421,4 +421,4 @@
return $url;
}