aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-04-14 09:51:45 +0000
committernikrou <nikrou@piwigo.org>2006-04-14 09:51:45 +0000
commit396ce7de17ffac0d02ffaccf6e428c9b5aaf45b6 (patch)
tree1c54270e2cf2171a499bfe0ec2fce8bc98101f87 /include
parentf7534a24ce5f23ef42372c46244f733befe55ded (diff)
-bug 308 fixed: svn merge -r1163:1164 from trunk
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1165 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_session.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php
index 482c76376..f2533d1d1 100644
--- a/include/functions_session.inc.php
+++ b/include/functions_session.inc.php
@@ -165,7 +165,7 @@ UPDATE '.SESSIONS_TABLE.'
WHERE id = \''.$session_id.'\'
;';
pwg_query($query);
- if ( mysql_affected_rows()==0 )
+ if ( mysql_affected_rows()==-1 )
{
$query = '
INSERT INTO '.SESSIONS_TABLE.'