From be4ef15bef8163ce0b57b8955f7ce428538c5e10 Mon Sep 17 00:00:00 2001 From: kkalev Date: Sun, 8 Sep 2002 12:10:35 +0000 Subject: [PATCH] Fix a few bugs --- Changelog | 1 + htdocs/user_edit.php3 | 6 +++--- lib/sql/create_group.php3 | 5 +++-- lib/sql/defaults.php3 | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Changelog b/Changelog index ce557c2..d0a907f 100644 --- a/Changelog +++ b/Changelog @@ -37,6 +37,7 @@ Ver 1.60: * Add sessions in order to cache the various mappings. Add a corresponding configuration directive general_use_session. Also add a session cache destroy page. * Also cache the admin.conf if use_session is set to 1 in config.php3 +* Fix a few bugs Ver 1.55: * Update the FAQ about missing attributes from the user/group edit pages and add a few comments in the configuration files diff --git a/htdocs/user_edit.php3 b/htdocs/user_edit.php3 index 0103170..23770f3 100644 --- a/htdocs/user_edit.php3 +++ b/htdocs/user_edit.php3 @@ -119,13 +119,13 @@ if ($user_type != 'group'){ echo << -User Password (changes only) - +EOM; if ($user_password_exists == 'yes') echo "User password exists\n"; else echo "User password does not exist\n"; -?> + echo << diff --git a/lib/sql/create_group.php3 b/lib/sql/create_group.php3 index f6dee4b..b7cf84a 100644 --- a/lib/sql/create_group.php3 +++ b/lib/sql/create_group.php3 @@ -1,4 +1,5 @@ Query failed for attribute $key: " . da_sql_error($link,$config) . "
\n"; } diff --git a/lib/sql/defaults.php3 b/lib/sql/defaults.php3 index 7641617..9b9a47d 100644 --- a/lib/sql/defaults.php3 +++ b/lib/sql/defaults.php3 @@ -77,7 +77,7 @@ if ($login != ''){ $attr_type["$key"] = 'replyItem'; $rev_attrmap["$val"] = $key; } - if (isset($default_vals["$key"]) && $overwrite_defaults){ + if (!isset($default_vals["$key"]) || $overwrite_defaults){ if ($use_op) $default_vals["$key"][operator] = $tmp["$val"][operator]; if ($tmp[$val][0] != '') -- 2.39.5