aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_main.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-01-23 18:47:10 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-01-23 18:47:10 +0000
commitc0214e35e13bcd8c62536c93590a96c580bc6773 (patch)
treee869b8f8641dc8d97c892b5e800ef11832edfff8 /phpBB/includes/acm/acm_main.php
parent4b08c14417d716c6186250d54ed35d578c074707 (diff)
downloadforums-c0214e35e13bcd8c62536c93590a96c580bc6773.tar
forums-c0214e35e13bcd8c62536c93590a96c580bc6773.tar.gz
forums-c0214e35e13bcd8c62536c93590a96c580bc6773.tar.bz2
forums-c0214e35e13bcd8c62536c93590a96c580bc6773.tar.xz
forums-c0214e35e13bcd8c62536c93590a96c580bc6773.zip
- fix minor bugs
git-svn-id: file:///svn/phpbb/trunk@5490 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm/acm_main.php')
-rw-r--r--phpBB/includes/acm/acm_main.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/phpBB/includes/acm/acm_main.php b/phpBB/includes/acm/acm_main.php
index 3f9e3fa60f..679998938f 100644
--- a/phpBB/includes/acm/acm_main.php
+++ b/phpBB/includes/acm/acm_main.php
@@ -217,18 +217,19 @@ class cache extends acm
if (is_array($check))
{
- // Check for private messaging
+ // Check for private messaging AND all forums allowed
if (sizeof($check) == 1 && $check[0] == 0)
{
$allowed = true;
- continue;
}
-
- $allowed = (!in_array($forum_id, $check)) ? false : true;
+ else
+ {
+ $allowed = (!in_array($forum_id, $check)) ? false : true;
+ }
}
else
{
- $allowed = ($forum_id == 0) ? false : true;
+ $allowed = ($forum_id === 0) ? false : true;
}
if ($allowed)
@@ -315,7 +316,7 @@ class cache extends acm
continue;
}
- if (!isset($parsed_array[$theme[$key . '_id']]) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
+ if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
{
$reparse = true;
}