-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:
parent
16e8f48477
commit
74dc25dca8
1 changed files with 1 additions and 1 deletions
|
@ -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.'
|
||||
|
|
Loading…
Add table
Reference in a new issue