Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Geeklog-Core/geeklog
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 19, 2017
2 parents 7ab520b + 8c627b7 commit 01b6b69
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 01b6b69

Please sign in to comment.