aboutsummaryrefslogtreecommitdiff
path: root/mod/search/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search/start.php')
-rw-r--r--mod/search/start.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/search/start.php b/mod/search/start.php
index 91443f3c7..366ea4466 100644
--- a/mod/search/start.php
+++ b/mod/search/start.php
@@ -378,7 +378,9 @@ function search_get_where_sql($table, $fields, $params, $use_fulltext = TRUE) {
// add the table prefix to the fields
foreach ($fields as $i => $field) {
- $fields[$i] = "$table.$field";
+ if ($table) {
+ $fields[$i] = "$table.$field";
+ }
}
// if we're not using full text, rewrite the query for bool mode.