diff --git a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc
index dfade68515d76919dc2864dae3c33accbf9d86c5..200d5d49ddaac1a298e5087ab34ed023267549e6 100644 (file)
/* deativate all fields that are not used by the specified type */
foreach($this->attributes as $att){
- if((!in_array($att,$this->usedattrs[$this->selected_category]))){
+ if((!in_array_strict($att,$this->usedattrs[$this->selected_category]))){
$smarty->assign($att."USED", "disabled" );
$smarty->assign($att, "");
}else{
foreach($this->attributes as $att){
/* Check all attributes, if they are needed for this type of phone */
- if(!in_array($att,$this->usedattrs[$mode])){
+ if(!in_array_strict($att,$this->usedattrs[$mode])){
$this->attrs[$att] = array();
}
}