isadmin()) die('Zugriff verweigert'); $info=null; if($dept && $_REQUEST['a']!='new'){ //Editing Department. $title='Abteilung aktualisieren'; $action='update'; $info=$dept->getInfo(); }else { $title='Neue Abteilung'; $action='create'; $info['ispublic']=isset($info['ispublic'])?$info['ispublic']:1; $info['ticket_auto_response']=isset($info['ticket_auto_response'])?$info['ticket_auto_response']:1; $info['message_auto_response']=isset($info['message_auto_response'])?$info['message_auto_response']:1; } $info=($errors && $_POST)?Format::input($_POST):Format::htmlchars($info); ?>