From: cajus Date: Wed, 9 Apr 2008 09:42:28 +0000 (+0000) Subject: Updated ppdManager X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eddae89f888484fd645650ba302c9ec5ab22d3a2;p=gosa.git Updated ppdManager -Fixed undefined index - The problem itself may not be fixed with this. The Ticket is still open. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10296 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc b/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc index 06996b18e..2fe99311f 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc @@ -146,10 +146,12 @@ class ppdManager }elseif(!is_writeable(preg_replace("#(^.*/).*$#","\\1",$ppdFile.".tmp"))){ msg_dialog::display(_("PPD manager error"), sprintf(_("The temporary file '%s' cannot be opened for writing."),$ppdFile.".tmp"), ERROR_DIALOG); }else{ - foreach ($properties as $name => $section){ - foreach ($section as $attribute => $value){ - if (is_array($value)){ - $this->updateAttribute($ppdFile, $name, $attribute, $value['_default']); + if(is_array($properties)){ + foreach ($properties as $name => $section){ + foreach ($section as $attribute => $value){ + if (is_array($value)){ + $this->updateAttribute($ppdFile, $name, $attribute, $value['_default']); + } } } } @@ -352,5 +354,5 @@ class ppdManager } } - +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>