aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_session.inc.php2
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.'