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