aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-08-15 16:31:07 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-08-15 16:31:07 +0000
commit8e3bbcde6f7a39b42cbcb4db461c1fb4dd80ecb9 (patch)
treee509beb2e05846d7cdc6ea58227aa0d60be0bbbd /phpBB/includes/session.php
parent832c29d3f5bdffbc84b9b9d812bf2c89da06329c (diff)
downloadforums-8e3bbcde6f7a39b42cbcb4db461c1fb4dd80ecb9.tar
forums-8e3bbcde6f7a39b42cbcb4db461c1fb4dd80ecb9.tar.gz
forums-8e3bbcde6f7a39b42cbcb4db461c1fb4dd80ecb9.tar.bz2
forums-8e3bbcde6f7a39b42cbcb4db461c1fb4dd80ecb9.tar.xz
forums-8e3bbcde6f7a39b42cbcb4db461c1fb4dd80ecb9.zip
Idiot
git-svn-id: file:///svn/phpbb/trunk@2858 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index ad349cf85f..32df71b48b 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -378,7 +378,7 @@ class session {
class acl
{
var $founder = false;
- var $acl = array();
+ var $acl = false;
function acl(&$userdata, $forum_id = false, $extra_options = false)
{
@@ -476,6 +476,8 @@ class acl
}
}
+// print_r($this->acl);
+
return;
}
@@ -487,11 +489,11 @@ class acl
}
else if ( $auth_main && $auth_type )
{
- return ( $this->get_acl(0, 'admin') ) ? true : ( ( $this->acl[$forum_id][$auth_main][$auth_type] ) ? true : false );
+ return $this->acl[$forum_id][$auth_main][$auth_type];
}
else if ( !$auth_type && is_array($this->acl[$forum_id][$auth_main]) )
{
- return ( $this->get_acl(0, 'admin') ) ? true : ( ( array_sum($this->acl[$forum_id][$auth_main]) ) ? true : false );
+ return array_sum($this->acl[$forum_id][$auth_main]);
}
}