This commit is contained in:
Shish
2020-01-26 16:38:26 +00:00
parent 60dda96fd2
commit 3631084afd
25 changed files with 105 additions and 55 deletions

View File

@ -257,7 +257,9 @@ class Media extends Extension
{
global $database;
if(is_null($event->term)) return;
if (is_null($event->term)) {
return;
}
$matches = [];
if (preg_match(self::CONTENT_SEARCH_TERM_REGEX, $event->term, $matches)) {