From fb9098d11967d8bfb235b04cb68d91df399f3ca9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 18 Mar 2007 04:37:55 +0000 Subject: [PATCH] r1490: Fixing a SQL error in admin/usergroup.php that would occur when inserting a new usergroup and trying to INSERT INTO the permissions table for custom fields --- admin/usergroup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/usergroup.php b/admin/usergroup.php index 6911f96..2cffefc 100755 --- a/admin/usergroup.php +++ b/admin/usergroup.php @@ -232,7 +232,7 @@ if ($_POST['do'] == 'insert') INSERT INTO " . TABLE_PREFIX . "bugfieldpermission (usergroupid, fieldid, mask) VALUES - (" . implode("\n\t\t\t", $values) . " + (" . implode("),\n\t\t\t(", $values) . " )" ); } @@ -398,7 +398,7 @@ if ($_REQUEST['do'] == 'modify') $admin->table_column_head(array(_('Usergroup'), _('Number of Users'), _('Action'))); foreach ($usergroups AS $group) { - $admin->row_multi_item(array("$group[title]" => 'l', ((!$group['total']) ? '-' : $group['total']) => 'c', "[" . _('Edit') . "]" . (($group['usergroupid'] > 6) ? "[" . _('Delete') . "]" : '') => 'c')); + $admin->row_multi_item(array("$group[title]" => 'l', ((!$group['total']) ? '-' : $group['total']) => 'c', "[" . _('Edit') . "]" . (($group['usergroupid'] > 6) ? " [" . _('Delete') . "]" : '') => 'c')); } $admin->table_end(); -- 2.43.5