From 02aee0690eb239a8f97c9eaab82037a0b5323c35 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 20 Feb 2008 00:31:04 +0000 Subject: Correctly save pages. --- usr/local/www/system_groupmanager.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr/local/www/system_groupmanager.php') diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index 2660297..215d232 100644 --- a/usr/local/www/system_groupmanager.php +++ b/usr/local/www/system_groupmanager.php @@ -257,12 +257,17 @@ if ($_POST) { if (isset($id) && $a_group[$id]) $group = $a_group[$id]; + if($id) + unset($a_group[$id]); + $group['name'] = $_POST['groupname']; $group['description'] = $_POST['description']; unset($group['pages']); foreach ($pages as $fname => $title) { $identifier = str_replace('.php','',$fname); - $group['pages'][] = $fname; + if ($_POST[$identifier] == 'yes') { + $group['pages'][] = $fname; + } } if (isset($id) && $a_group[$id]) @@ -370,7 +375,7 @@ if($_GET['act']=="new" || $_GET['act']=="edit"){ $title) { - $identifier = str_replace('.php','',$fname); + $identifier = str_replace('.php','',$fname);x ?> > -- cgit v1.1