Skip to content

Commit

Permalink
-bug 308 fixed: problem when updating session
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@1164 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed Apr 14, 2006
1 parent 16e8f48 commit 74dc25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/functions_session.inc.php
Expand Up @@ -165,7 +165,7 @@ function pwg_session_write($session_id, $data)
WHERE id = \''.$session_id.'\'
;';
pwg_query($query);
if ( mysql_affected_rows()==0 )
if ( mysql_affected_rows()==-1 )
{
$query = '
INSERT INTO '.SESSIONS_TABLE.'
Expand Down

0 comments on commit 74dc25d

Please sign in to comment.