diff options
Diffstat (limited to '')
-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 f2533d1d1..482c76376 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()==-1 ) + if ( mysql_affected_rows()==0 ) { $query = ' INSERT INTO '.SESSIONS_TABLE.' |