Commit a7e03355 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5194 Avoid case problem when comparing objectType

parent 13388b82
......@@ -57,14 +57,14 @@ class groupManagement extends simpleManagement
// Load information if needed
$result = ' ';
if (!empty($attrs)) {
if ($objectType == 'ogroup') {
if (lc($objectType) == 'ogroup') {
if (empty($gosaGroupObjects)) {
return $result;
} else {
return self::filterGroupObjects($row, $gosaGroupObjects);
}
}
if ($objectType == 'role') {
if (lc($objectType) == 'role') {
return '<input class="center" type="image" src="geticon.php?context=types&amp;icon=role&amp;size=16" '.
'alt="'._('Role').'" title="'._('Edit role properties').'" '.
'name="listing_edit_'.$row.'" style="padding:1px"/>';
......
......@@ -42,7 +42,7 @@ class ObjectsAttribute extends GenericDialogAttribute
$infos = objects::infos($objectType);
$this->types[$i] = $code;
$this->displays[$i] = $attrs[$infos['nameAttr']][0];
if ($objectType == 'user') {
if (lc($objectType) == 'user') {
if (isset($attrs['description'][0])) {
$this->displays[$i] .= ' ['.$attrs['uid'][0].' - '.$attrs['description'][0].']';
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment