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.php4
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]));