Code

Updated ppd dialog again
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Apr 2010 11:41:43 +0000 (11:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Apr 2010 11:41:43 +0000 (11:41 +0000)
-Display warnings about 'unsupported' properties only when displayErrors is true.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@17994 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc

index 3da4d8548209d56b238c4d91e68cff84d9837b15..46354cd2860b8d77f5081c94c054061a28749774 100644 (file)
@@ -528,7 +528,7 @@ class printerPPDDialog extends plugin
             }          
             $str  .=  "</select>\n";
 
-          }else{
+          }elseif($this->config->get_cfg_value("displayerrors") == "true"){
             msg_dialog::display(_("PPD error"), sprintf(_("PPD type '%s' is not supported!"), $type), ERROR_DIALOG);
           }
           $str .= "</td></tr>\n";