From cd9b3af2b5e76ee12651c17316ae9d0d9e84130f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 9 Mar 2003 16:09:37 +0000 Subject: Some changes to the returned data format + cleanups git-svn-id: file:///svn/phpbb/trunk@3622 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/auth/auth_db.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'phpBB/includes/auth/auth_db.php') diff --git a/phpBB/includes/auth/auth_db.php b/phpBB/includes/auth/auth_db.php index d91655ff04..3666eeb105 100644 --- a/phpBB/includes/auth/auth_db.php +++ b/phpBB/includes/auth/auth_db.php @@ -1,24 +1,27 @@ sql_escape($username) . "'"; $result = $db->sql_query($sql); - if ( $row = $db->sql_fetchrow($result) ) + if ($row = $db->sql_fetchrow($result)) { $db->sql_freeresult($result); - if ( md5($password) == $row['user_password'] && $row['user_active'] ) + if (md5($password) == $row['user_password']) { - return $row; + return (empty($row['user_active'])) ? 0 : $row; } } -- cgit v1.2.1