Index: trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php |
— | — | @@ -51,6 +51,9 @@ |
52 | 52 | } elseif ($category != '') { |
53 | 53 | $data = sffGetAllPagesForCategory($category, 3, $substr); |
54 | 54 | } elseif ($namespace != '') { |
| 55 | + // special handling for main (blank) namespace |
| 56 | + if ($namespace == 'main') |
| 57 | + $namespace = ''; |
55 | 58 | $data = sffGetAllPagesForNamespace($namespace, $substr); |
56 | 59 | } else { |
57 | 60 | $date = array(); |