From 369189806bf4bf85fe0409e6f66919ab4f4b70cd Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Wed, 9 Oct 2002 19:50:48 +0000 Subject: Added the redirect() function for nice and clean redirection. git-svn-id: file:///svn/phpbb/trunk@2948 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/session.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'phpBB/includes/session.php') diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index ed2bc840a8..0dd9ebd8e1 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -442,9 +442,9 @@ class auth { global $db; - if ( !($this->founder = $userdata['user_founder']) ) + if (!$this->founder = $userdata['user_founder']) { - $in_sql = '\'a_\', \'f_list\''; + $in_sql = "'a_', 'f_list'"; if ( $options ) { @@ -452,7 +452,7 @@ class auth { foreach ( $options as $option ) { - $in_sql .= ', \'' . $option . '\''; + $in_sql .= ", '$option'"; } } else @@ -468,8 +468,8 @@ class auth // The possible alternative here is to store the options in a file // (perhaps with the other config data) and do away with this query. - $sql = "SELECT auth_option_id, auth_value - FROM " . ACL_OPTIONS_TABLE . " + $sql = 'SELECT auth_option_id, auth_value + FROM ' . ACL_OPTIONS_TABLE . " WHERE auth_value IN ($in_sql) $or_sql"; $result = $db->sql_query($sql); @@ -527,7 +527,7 @@ class auth } */ } - +$this->acl_cache($userdata); return; } -- cgit v1.2.1