diff --git a/lib/models/SimpleCollection.class.php b/lib/models/SimpleCollection.class.php index 49ebf6c935193737e92b2847df0b6683672fe472..1a32491818c28e851699b5a87817973da70c5319 100644 --- a/lib/models/SimpleCollection.class.php +++ b/lib/models/SimpleCollection.class.php @@ -688,7 +688,7 @@ class SimpleCollection extends StudipArrayObject $value2 = static::translitLatin1(mb_substr($d2[$field], 0, 100)); } $ret = $sort_func($value1, $value2); - if (mb_strtolower($dir) == 'desc') $ret = $ret * -1; + if (strtolower($dir) == 'desc') $ret = $ret * -1; } while ($ret === 0 && next($sorter)); return $ret; diff --git a/lib/models/SimpleORMapCollection.class.php b/lib/models/SimpleORMapCollection.class.php index 6f10f219fc18160cb2851e6ec47396be62bd9b1f..ee7dfbbb708975fab0ad279454e41c7cb8dc834e 100644 --- a/lib/models/SimpleORMapCollection.class.php +++ b/lib/models/SimpleORMapCollection.class.php @@ -110,8 +110,8 @@ class SimpleORMapCollection extends SimpleCollection */ public function setClassName($class_name) { - $this->relation_options['class_name'] = mb_strtolower($class_name); - $this->deleted->relation_options['class_name'] = mb_strtolower($class_name); + $this->relation_options['class_name'] = strtolower($class_name); + $this->deleted->relation_options['class_name'] = strtolower($class_name); } /** @@ -131,7 +131,7 @@ class SimpleORMapCollection extends SimpleCollection */ public function getClassName() { - return mb_strtolower($this->relation_options['class_name']); + return strtolower($this->relation_options['class_name']); } /** @@ -236,4 +236,4 @@ class SimpleORMapCollection extends SimpleCollection } $this->storage = array_values($this->storage); } -} \ No newline at end of file +}