From ce7f071c38202764f43eded4c3157a4743bd545f Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 21 Dec 2011 23:18:57 +0100 Subject: #44 angeltypes recreated --- includes/pages/admin_groups.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/pages/admin_groups.php') diff --git a/includes/pages/admin_groups.php b/includes/pages/admin_groups.php index 770f09b4..2fc789fa 100644 --- a/includes/pages/admin_groups.php +++ b/includes/pages/admin_groups.php @@ -36,7 +36,7 @@ function admin_groups() { if (isset ($_REQUEST['id']) && preg_match("/^-[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing Groups ID."); + return error("Incomplete call, missing Groups ID.", true); $room = sql_select("SELECT * FROM `Groups` WHERE `UID`=" . sql_escape($id) . " LIMIT 1"); if (count($room) > 0) { @@ -62,14 +62,14 @@ function admin_groups() { 'privileges' => $privileges_html )); } else - return error("No Group found."); + return error("No Group found.", true); break; case 'save' : if (isset ($_REQUEST['id']) && preg_match("/^-[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing Groups ID."); + return error("Incomplete call, missing Groups ID.", true); $room = sql_select("SELECT * FROM `Groups` WHERE `UID`=" . sql_escape($id) . " LIMIT 1"); if (!is_array($_REQUEST['privileges'])) @@ -82,7 +82,7 @@ function admin_groups() { sql_query("INSERT INTO `GroupPrivileges` SET `group_id`=" . sql_escape($id) . ", `privilege_id`=" . sql_escape($priv)); header("Location: " . page_link_to("admin_groups")); } else - return error("No Group found."); + return error("No Group found.", true); break; } } -- cgit v1.2.3-54-g00ecf