diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/Modelhome.php | 3 | ||||
-rw-r--r-- | app/class/Opt.php | 16 |
2 files changed, 2 insertions, 17 deletions
diff --git a/app/class/Modelhome.php b/app/class/Modelhome.php index 8d7a38b..9957c0b 100644 --- a/app/class/Modelhome.php +++ b/app/class/Modelhome.php @@ -32,9 +32,6 @@ class Modelhome extends Modelpage public function Optlistinit(array $table) { $optlist = new Optlist(Page::classvarlist()); - $optlist->settaglist($table); - $optlist->setauthorlist($table); - return $optlist; } 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; } } |