From 2390cba867a49e96156e9cf57cbf591182f98bd7 Mon Sep 17 00:00:00 2001 From: neoraider Date: Sat, 22 Jul 2006 15:38:00 +0000 Subject: Module k?nnen jetzt deaktiviert werden. --- code/pages.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'code/pages.inc.php') 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])); -- cgit v1.2.3