aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-05-15 12:45:50 +0000
committerplegall <plg@piwigo.org>2015-05-15 12:45:50 +0000
commite520cf83894e8a41aa4c9748b8b37f5e61265265 (patch)
treec20808ea4252a20f20334b8272f51441c5f3dbe6 /include/functions_user.inc.php
parenta1b995686b4d9590f47aba3522dee16bd8178a2a (diff)
merge r31167 from branch 2.7 to trunk
bug 3223 fixed: make sure we have found a user before validating the connection git-svn-id: http://piwigo.org/svn/trunk@31168 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index d4a0ebaf6..5f503b36e 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -1116,7 +1116,7 @@ SELECT '.$conf['user_fields']['id'].' AS id,
WHERE '.$conf['user_fields']['username'].' = \''.pwg_db_real_escape_string($username).'\'
;';
$row = pwg_db_fetch_assoc(pwg_query($query));
- if ($conf['password_verify']($password, $row['password'], $row['id']))
+ if (isset($row['id']) and $conf['password_verify']($password, $row['password'], $row['id']))
{
log_user($row['id'], $remember_me);
trigger_notify('login_success', stripslashes($username));