diff options
author | neoraider <devnull@localhost> | 2006-07-22 17:38:00 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-07-22 17:38:00 +0200 |
commit | 2390cba867a49e96156e9cf57cbf591182f98bd7 (patch) | |
tree | 03dba7bb5f82e05e7743664531192185c71f5df3 /code/pages.inc.php | |
parent | fa7c1b717c118d08ba55c5306c4aeeb3e4418ca5 (diff) | |
download | neon-2390cba867a49e96156e9cf57cbf591182f98bd7.tar neon-2390cba867a49e96156e9cf57cbf591182f98bd7.zip |
Module k?nnen jetzt deaktiviert werden.
Diffstat (limited to 'code/pages.inc.php')
-rw-r--r-- | code/pages.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/pages.inc.php b/code/pages.inc.php index a5e6df8..6f0e383 100644 --- a/code/pages.inc.php +++ b/code/pages.inc.php @@ -10,6 +10,8 @@ 'Login.c' => null, 'Logout.c' => null, 'Modules.c' => null, + 'Modules:Config.c' => null, + 'Modules:Enable.c' => null, 'Pages.c' => null, 'Pages:Copy.c' => null, 'Pages:Delete.c' => null, @@ -261,7 +263,7 @@ if($res->RecordCount()) { $GLOBALS['db']->Execute('UPDATE privs SET readaccess = ?, writeaccess = ? WHERE name = ? AND type = ?', array($access[0], $access[1], $page, $type)); - return true; + return ($GLOBALS['db']->Affected_Rows() > 0); } $GLOBALS['db']->Execute('INSERT INTO privs (name, type, readaccess, writeaccess) VALUES (?, ?, ?, ?)', array($page, $type, $access[0], $access[1])); |