prevent php warning if converters are not set

This commit is contained in:
Uwe Steinmann 2018-01-09 15:32:08 +01:00
parent ca1b5ba5cc
commit 09c7c0fc2a

View File

@ -747,6 +747,7 @@ if(!is_writeable($settings->_configFilePath)) {
?> ?>
<tr><td><b><?php printMLText($target."_converters");?></b></td></tr> <tr><td><b><?php printMLText($target."_converters");?></b></td></tr>
<?php <?php
if(!empty($settings->_converters[$target])) {
foreach($settings->_converters[$target] as $mimetype=>$cmd) { foreach($settings->_converters[$target] as $mimetype=>$cmd) {
?> ?>
<tr title="<?php echo $mimetype;?>"> <tr title="<?php echo $mimetype;?>">
@ -755,6 +756,7 @@ if(!is_writeable($settings->_configFilePath)) {
</tr> </tr>
<?php <?php
} }
}
?> ?>
<tr title=""> <tr title="">
<td><?php $this->showTextField("converters[".$target."][newmimetype]", "", '', getMLText('converter_new_mimetype')); ?>:</td> <td><?php $this->showTextField("converters[".$target."][newmimetype]", "", '', getMLText('converter_new_mimetype')); ?>:</td>