diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 9d3c2cfe25ef6e524d4ccaacec09d0d064271f5e..04e78a4075812132f6ad893a9595128edba71ddc 100644 (file)
$this->PPDdialogToSave->save_ppd();
}
if($this->orig_dn != $this->dn){
- $this->PPDdialogToSave = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD);
- $this->PPDdialogToSave->cn = $this->cn;
- $this->PPDdialogToSave->generateProperties();
- $this->PPDdialogToSave->update_ppd_url();
+ if(!empty($this->gotoPrinterPPD)) {
+ $this->PPDdialogToSave = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD);
+ $this->PPDdialogToSave->cn = $this->cn;
+ $this->PPDdialogToSave->generateProperties();
+ $this->PPDdialogToSave->update_ppd_url();
+ }
}
/* Remove previously selected ppd file.*/