From 0e8661256f7851e1feb0d5d49a46a2a56149fd83 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 1 Feb 2019 15:15:13 +0100 Subject: edit by fix --- app/class/art2.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/class/art2.php') diff --git a/app/class/art2.php b/app/class/art2.php index 4f04858..01ce218 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -148,7 +148,11 @@ class Art2 public function title($type = 'string') { - return $this->title; + if($type == 'sort') { + return strtolower($this->title); + } else { + return $this->title; + } } public function description($type = 'string') @@ -532,7 +536,7 @@ class Art2 public function setcss($css) { if (strlen($css) < self::LENTEXT and is_string($css)) { - $this->css = strip_tags(trim(strtolower($css))); + $this->css = trim(strtolower($css)); } } @@ -722,7 +726,7 @@ class Art2 public function setauthors($authors) { if(is_array($authors)) { - $this->authors = $authors; + $this->authors = array_values(array_filter($authors)); } } -- cgit v1.2.3