summaryrefslogtreecommitdiffstats
path: root/code/pages.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-11 01:32:02 +0200
committerneoraider <devnull@localhost>2006-04-11 01:32:02 +0200
commite267e31bd045ff4a6bfa1489b0ad0eb5fcc7b31d (patch)
tree12258874b7507fd9784184c08e2fbd89e945edd4 /code/pages.inc.php
parent9697f5a0d665e7171de958182cbe59c1dcfe2c87 (diff)
downloadneon-e267e31bd045ff4a6bfa1489b0ad0eb5fcc7b31d.tar
neon-e267e31bd045ff4a6bfa1489b0ad0eb5fcc7b31d.zip
/code/links.inc.php /code/nav.inc.php: Links::ParseNavLink nach Nav::ParseLink verschoben.
/code/pages.inc.php: Bug in HasAccess() gefixt. /handlers/default.inc.php /handlers/phpexec.inc.php: Globale Variablen wurden nicht in $GLOBALS gesetzt.
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);
}