diff options
Diffstat (limited to 'app/class/art2.php')
-rw-r--r-- | app/class/art2.php | 10 |
1 files changed, 7 insertions, 3 deletions
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)); } } |