diff options
author | nikrou <nikrou@piwigo.org> | 2006-04-14 09:49:06 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2006-04-14 09:49:06 +0000 |
commit | 74dc25dca8160443a0782544e3c7b1647bb3b7cb (patch) | |
tree | 45f6faaab9f27348b5179823dfde558debde70dc /include/functions_session.inc.php | |
parent | 16e8f48477e8d6b555f633dd0bf421e94fc18f24 (diff) |
-bug 308 fixed: problem when updating session
git-svn-id: http://piwigo.org/svn/trunk@1164 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_session.inc.php')
-rw-r--r-- | include/functions_session.inc.php | 2 |
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.' |