aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_session.inc.php
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2006-04-14 18:22:19 +0000
committerchrisaga <chrisaga@piwigo.org>2006-04-14 18:22:19 +0000
commit2d185bf1490a275543d8fffeb98718654554a1a2 (patch)
tree8673385d6ac7151c751a3965d65b76a9ab521a65 /include/functions_session.inc.php
parentfce33ca7ec0463cf23209f222ab8e7b4f3463606 (diff)
- merge trunc r1167:1168 into branch 1.6
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1169 68402e56-0260-453c-a942-63ccdbb3a9ee
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 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.'