-bug 308 fixed: problem when updating session

git-svn-id: http://piwigo.org/svn/trunk@1164 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou 2006-04-14 09:49:06 +00:00
parent 16e8f48477
commit 74dc25dca8

View file

@ -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.'