aboutsummaryrefslogtreecommitdiff
path: root/app/class/opt.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/opt.php')
-rw-r--r--app/class/opt.php4
1 files changed, 2 insertions, 2 deletions
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;
}
}