Fix a small error in lib/sql/find.php3. This closes bug #103
authorkkalev <kkalev>
Mon, 12 Jul 2004 13:14:39 +0000 (13:14 +0000)
committerkkalev <kkalev>
Mon, 12 Jul 2004 13:14:39 +0000 (13:14 +0000)
dialup_admin/Changelog
dialup_admin/lib/sql/find.php3

index 4458ed0..0020ba9 100644 (file)
@@ -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
index d14cdbf..3eb6893 100644 (file)
@@ -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