From 38ac270fb4791eb0130c0902230104c2f81badff Mon Sep 17 00:00:00 2001 From: kkalev Date: Wed, 27 Oct 2004 11:22:41 +0000 Subject: [PATCH] On group creation, if member list is empty report that, not that the group was created. --- Changelog | 1 + lib/sql/create_group.php3 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index d7d6840..b34f6ea 100644 --- a/Changelog +++ b/Changelog @@ -32,6 +32,7 @@ Ver 1.75: * Add a new directive sql_show_all_groups. If set to true then in user edit page we show all available groups with the ones the user is a member of highlighted. The administrator can then directly change user group membership by changing membership in this group list. +* On group creation, if member list is empty report that, not that the group was created. Ver 1.72: * Move the xlat function to a separate file in lib/xlat.php3 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works) diff --git a/lib/sql/create_group.php3 b/lib/sql/create_group.php3 index 22ecf69..0539b99 100644 --- a/lib/sql/create_group.php3 +++ b/lib/sql/create_group.php3 @@ -28,6 +28,8 @@ if ($link){ } } } + else + echo "Members list is empty!!
\n"; if (!$da_abort){ foreach($show_attrs as $key => $attr){ if ($attrmap["$key"] == 'none') @@ -65,8 +67,8 @@ if ($link){ if (!$res || !@da_sql_affected_rows($link,$res,$config)) echo "Query failed for attribute $key: " . da_sql_error($link,$config) . "
\n"; } + echo "Group created successfully
\n"; } - echo "Group created successfully
\n"; } else echo "Could not connect to SQL database
\n"; -- 2.39.5