Browse Source

Fix a typo that prevented autosuggest from working

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 12 years ago
parent
commit
60544259d0
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Sources/Subs-Editor.php

+ 3 - 5
Sources/Subs-Editor.php

@@ -2240,7 +2240,7 @@ function AutoSuggest_Search_Member()
  *
  * @return string
  */
-function AutoSuggest_Search_MemberGroup()
+function AutoSuggest_Search_MemberGroups()
 {
 	global $txt, $smcFunc, $context;
 
@@ -2254,14 +2254,12 @@ function AutoSuggest_Search_MemberGroup()
 		FROM {db_prefix}membergroups
 		WHERE group_name LIKE {string:search}
 			AND min_posts = {int:min_posts}
-			AND group_type != {int:is_protected}
-			AND id_group != {int:mod_group}
+			AND id_group NOT IN ({array_int:invalid_groups})
 			AND hidden != {int:hidden}
 		',
 		array(
 			'min_posts' => -1,
-			'is_protected' => 1,
-			'mod_group' => 3,
+			'invalid_groups' => array(1,3),
 			'hidden' => 2,
 			'search' => $_REQUEST['search'],
 		)