Skip to content

Commit

Permalink
Updated Fix for Search not working on PHP 5.3
Browse files Browse the repository at this point in the history
Updated fix for commit 5b836c9
  • Loading branch information
eSilverStrike committed Jan 18, 2017
1 parent 0550658 commit 8c627b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/classes/searchcriteria.class.php
Expand Up @@ -158,7 +158,8 @@ function getFTSQL()
function buildSearchSQL($keyType, $query, $columns, $sql = '')
{
// Make sure query has at least 1 letter
if (trim($query) == false) {
// if (!empty(trim($query))) { // Doesn't work in PHP 5.3
if (strlen(trim($query)) > 0) {
if ($keyType === 'all') {
// must contain ALL of the keywords
$words = array_unique(explode(' ', $query));
Expand Down

0 comments on commit 8c627b7

Please sign in to comment.