From 695908c7ab2a5d5f011f616d2af3368da7131a6f Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 22 Jan 2019 02:04:53 +0100 Subject: home columns and download function added --- app/class/opt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class/opt.php') diff --git a/app/class/opt.php b/app/class/opt.php index 9d23c3f..6ea3e7e 100644 --- a/app/class/opt.php +++ b/app/class/opt.php @@ -88,7 +88,7 @@ class Opt public function getadress($sortby) { - if(in_array($sortby, $this->col)) { + if(in_array($sortby, Model::COLUMNS)) { if($this->sortby() === $sortby) { $order = $this->order * -1; } else { @@ -108,7 +108,7 @@ class Opt return $adress; } else { - returnfalse; + return false; } } -- cgit v1.2.3