From f66c88b1eacfbc91403f7f4839af74c19bea18d4 Mon Sep 17 00:00:00 2001 From: kkalev Date: Mon, 12 Jul 2004 13:14:39 +0000 Subject: [PATCH] Fix a small error in lib/sql/find.php3. This closes bug #103 --- Changelog | 1 + lib/sql/find.php3 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 4458ed0..0020ba9 100644 --- a/Changelog +++ b/Changelog @@ -19,6 +19,7 @@ Ver 1.72: if a function is missing. Currently only array_change_key_case() is included * Set general_restrict_nasadmin_access to no by default. It causes confusion. * Set the general_username_mappings_file variable +* Fix a small error in lib/sql/find.php3. This closes bug #103 Ver 1.70: * Add the /bin postgresql compatibility patch from Guy Fraser * Add ldap_userdn as a configuration directive. If set we use that for diff --git a/lib/sql/find.php3 b/lib/sql/find.php3 index d14cdbf..3eb6893 100644 --- a/lib/sql/find.php3 +++ b/lib/sql/find.php3 @@ -11,7 +11,7 @@ if ($link){ $search = da_sql_escape_string($search); if (!is_numeric($max_results)) $max_results = 10; - if (($search_IN == 'name' || $search_IN == 'department' || $search_IN == 'username) && + if (($search_IN == 'name' || $search_IN == 'department' || $search_IN == 'username') && $config[sql_use_user_info_table] == 'true'){ $res = @da_sql_query($link,$config, "SELECT username FROM $config[sql_user_info_table] WHERE -- 2.39.5