summaryrefslogtreecommitdiffstats
path: root/code/pages.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/pages.inc.php')
-rw-r--r--code/pages.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/pages.inc.php b/code/pages.inc.php
index 50e45fe..3a84aa3 100644
--- a/code/pages.inc.php
+++ b/code/pages.inc.php
@@ -72,6 +72,7 @@
if($type) $res = $GLOBALS['db']->Execute('SELECT access FROM pages WHERE name = ? AND type = ?', array($page, $type));
else $res = $GLOBALS['db']->Execute('SELECT access FROM pages WHERE id = ?', $page);
+ if(!$res->RecordCount()) return false;
return ($GLOBALS['user']->IsAdmin() || (ord($res->fields[0][$gid/8]) & (1 << ($gid%8))) != 0);
}