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_apache.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'phpBB/includes/auth/auth_apache.php') diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php index 88d5be4f4f..f87ad738c0 100644 --- a/phpBB/includes/auth/auth_apache.php +++ b/phpBB/includes/auth/auth_apache.php @@ -1,24 +1,32 @@ sql_escape($username) . "'"; $result = $db->sql_query($sql); - return ( $row = $db->sql_fetchrow($result) ) ? $row : false; + if ($row = $db->sql_fetchrow($result)) + { + $db->sql_freeresult($result); + return (empty($row['user_active'])) ? 0 : $row; + } } return false; -- cgit v1.2.1