aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-09-12 22:59:42 +0000
committerz0rglub <z0rglub@piwigo.org>2003-09-12 22:59:42 +0000
commit866372df2fae0f5ee4a9535ad3990c3bda8d1f8e (patch)
tree75691cd1d3f46bdb8e029995288ac44a87263ad3 /include
parentbf59f1f3e89670c1c4a9097144fcb35fe00c33d9 (diff)
When a page is refresh with an expired session still existing in the
database, the first page works -> corrected. git-svn-id: http://piwigo.org/svn/trunk@90 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/user.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php
index 8fc399560..a91a4b61b 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -77,7 +77,7 @@ if ( isset( $session_id )
$delete_query.= ';';
mysql_query( $delete_query );
}
- if ( $_SERVER['REMOTE_ADDR'] == $row['ip'] )
+ else if ( $_SERVER['REMOTE_ADDR'] == $row['ip'] )
{
$query_user .= ' WHERE id = '.$row['user_id'];
$query_done = true;