diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc
index 2463ed87b6f505fc9ad59337e639be90d8a22a41..46aa1f1f8b472dda1934e45113d3b409b57a2fcb 100644 (file)
/* If this is a WS / Terminal depending printer, display account state button */
if(!preg_match("/^Printer$/i",$this->BelongsTo)){
- if((empty($this->cn)) && ($this->dn != "new")){
+ if($this->cn == "" && ($this->dn != "new")){
$display= $this->show_enable_header(_("Add printer extension"),
msgPool::featuresDisabled(_("printer"))._("You can't enable it while 'cn' is not present in entry. Possibly you are currently creating a new terminal template."),TRUE,TRUE);
$this->is_account= false;
/* Parse selected ppd file */
$config = session::get('config');
- if ($config->get_cfg_value("ppd_path") != ""){
- $path = $config->get_cfg_value("ppd_path");
+ if ($config->get_cfg_value("ppdPath") != ""){
+ $path = $config->get_cfg_value("ppdPath");
if(!preg_match("/\/$/",$path)){
$path = $path."/";
}
$dn= "cn=".$this->cn.get_ou('printerou').",".$this->base;
/* must: cn */
- if(($this->BelongsTo == "Printer") && (empty($this->cn))){
+ if(($this->BelongsTo == "Printer") && $this->cn == ""){
$message[]= msgPool::required(_("Name"));
}