X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/42d8e9e5bda57a26bbaa3f6e4a9e4e5f94a341e7..refs/pull/255/head:/app/Entity.php diff --git a/app/Entity.php b/app/Entity.php index 8a15b5aa4..186059f00 100644 --- a/app/Entity.php +++ b/app/Entity.php @@ -175,7 +175,8 @@ class Entity extends Ownable } } - $isFuzzy = count($exactTerms) === 0 || count($fuzzyTerms) > 0; + $isFuzzy = count($exactTerms) === 0 && count($fuzzyTerms) > 0; + // Perform fulltext search if relevant terms exist. if ($isFuzzy) {