From b35fca42a08df49dd114dc62b069975d04016c83 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 7 Apr 2020 14:05:55 +0200 Subject: query : keep tags, authors filters if not existing fix #84 --- app/class/Opt.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'app/class/Opt.php') diff --git a/app/class/Opt.php b/app/class/Opt.php index 5f00141..821fc92 100644 --- a/app/class/Opt.php +++ b/app/class/Opt.php @@ -305,13 +305,7 @@ class Opt extends Item public function settagfilter($tagfilter) { if (!empty($tagfilter) && is_array($tagfilter)) { - $tagfilterverif = []; - foreach ($tagfilter as $tag) { - if (array_key_exists($tag, $this->taglist)) { - $tagfilterverif[] = $tag; - } - } - $this->tagfilter = $tagfilterverif; + $this->tagfilter = $tagfilter; } } @@ -325,13 +319,7 @@ class Opt extends Item public function setauthorfilter($authorfilter) { if (!empty($authorfilter) && is_array($authorfilter)) { - $authorfilterverif = []; - foreach ($authorfilter as $author) { - if (array_key_exists($author, $this->authorlist)) { - $authorfilterverif[] = $author; - } - } - $this->authorfilter = $authorfilterverif; + $this->authorfilter = $authorfilter; } } -- cgit v1.2.3