diff options
Diffstat (limited to 'app/class/Opt.php')
-rw-r--r-- | app/class/Opt.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/Opt.php b/app/class/Opt.php index 426328f..6697c63 100644 --- a/app/class/Opt.php +++ b/app/class/Opt.php @@ -244,7 +244,7 @@ class Opt extends Item public function setsortby($sortby) { - if (is_string($sortby) && in_array($sortby, $this->pagevarlist)) { + if (is_string($sortby) && in_array($sortby, $this->pagevarlist) && in_array($sortby, Model::COLUMNS)) { $this->sortby = strtolower(strip_tags($sortby)); } } @@ -337,7 +337,7 @@ class Opt extends Item public function setcol($col) { if (is_array($col)) { - $this->col = array_intersect($this->pagevarlist(), $col); + $this->col = array_intersect($this->pagevarlist, $col); } } |