From 03704a43a758740eaa4bc6db30bf215ff4617f21 Mon Sep 17 00:00:00 2001 From: kkalev Date: Sat, 9 Nov 2002 19:43:13 +0000 Subject: [PATCH] Fix a bug in lib/defaults.php3 which did not allow the default.vals file to be used correctly --- Changelog | 1 + lib/defaults.php3 | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog b/Changelog index 33ae9e6..80a4a09 100644 --- a/Changelog +++ b/Changelog @@ -6,6 +6,7 @@ Ver 1.61: * When spliting cn in lib/ldap/create_user.php3 limit the split to 2 new elements not 3. * Fix a few bugs in log_badlogins * Fix a parse error in failed_logins.php3 +* Fix a bug in lib/defaults.php3 which did not allow the default.vals file to be used correctly Ver 1.60: * Use require_once when including lib/functions.php3 in lib/sql * In the buttons toolbar Edit User should not be clickable. diff --git a/lib/defaults.php3 b/lib/defaults.php3 index 1d21547..80fa493 100644 --- a/lib/defaults.php3 +++ b/lib/defaults.php3 @@ -7,6 +7,7 @@ if (!isset($text_default_vals)){ continue; list($key,$v)=split(":[[:space:]]*",$val); $text_default_vals["$key"][0]="$v"; + $text_default_vals["$key"]['count']++; } if (!isset($text_default_vals)) $text_default_vals["NOT_EXIST"][0] = '0'; -- 2.39.5