aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Search.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Search.php')
-rw-r--r--app/Models/Search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php
index 9622e18ab..52b000344 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -645,7 +645,7 @@ class FreshRSS_Search {
return '';
}
if (preg_match_all('/(?<=\s|^)[!-](?P<search>[^\s]+)/', $input, $matches)) {
- $this->not_search = array_merge(is_array($this->not_search) ? $this->not_search : array(), $matches['search']);
+ $this->not_search = array_merge(is_array($this->not_search) ? $this->not_search : [], $matches['search']);
$input = str_replace($matches[0], '', $input);
}
$this->not_search = self::removeEmptyValues($this->not_search);