diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index dda5975ef37969189fe1caa1da83979ecd3c764d..66aadf839ee297d01551da3995119f8ca7e7b8c4 100644 (file)
function __recurseItem($item, $types, $parent = "")
{
$res = array();
- if(in_array($item['type'], $types)){
+ if(in_array_strict($item['type'], $types)){
$path = preg_replace("/".preg_quote($parent,'/')."/","",$item['path']);
$res[$path] = array('name' => $item['name'],'desc'=>$item['type']);
}
$id = $ids[0];
$item = $this->dataModel->getItemById($id);
if($item){
- if(in_array($item['type'], array('Distribution', 'Release'))){
+ if(in_array_strict($item['type'], array('Distribution', 'Release'))){
$this->setCurrentContainer($item['path'], $this->selectedItem);
- }elseif(in_array($item['type'], array('Component'))){
+ }elseif(in_array_strict($item['type'], array('Component'))){
$next = preg_replace("/".preg_quote($this->selectedContainer,'/')."/","", $item['path']);
$this->setCurrentContainer($this->selectedContainer, $next);
}else{