diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-01-14 20:30:47 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-01-14 20:30:47 +0000 |
commit | 1ae9d04e864d7b3e67a9087ebdd5237d342e39f6 (patch) | |
tree | 8203603258921b2b3bfcaa62a1b5d2d405990604 | |
parent | be9295518a0406f72ac147ca97c86647a0cf8b65 (diff) | |
download | elgg-1ae9d04e864d7b3e67a9087ebdd5237d342e39f6.tar.gz elgg-1ae9d04e864d7b3e67a9087ebdd5237d342e39f6.tar.bz2 |
Allowing no table prefix in search_get_search_where_sql()
git-svn-id: http://code.elgg.org/elgg/trunk@3810 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/search/start.php | 4 |
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. |