check if $conf['help'] and $conf['size'] is set before using it

This commit is contained in:
Uwe Steinmann 2017-05-02 21:00:36 +02:00
parent 53f646114a
commit 97bab1ead8

View File

@ -738,7 +738,7 @@ if(!is_writeable($settings->_configFilePath)) {
<?php <?php
foreach($extconf['config'] as $confkey=>$conf) { foreach($extconf['config'] as $confkey=>$conf) {
?> ?>
<tr title="<?php echo $extconf['title'];?>"> <tr title="<?php echo isset($conf['help']) ? $conf['help'] : '';?>">
<td><?php echo $conf['title'];?>:</td><td> <td><?php echo $conf['title'];?>:</td><td>
<?php <?php
switch($conf['type']) { switch($conf['type']) {
@ -749,7 +749,7 @@ if(!is_writeable($settings->_configFilePath)) {
break; break;
default: default:
?> ?>
<input type="text" name="<?php echo "extensions[".$extname."][".$confkey."]"; ?>" title="<?php echo isset($conf['help']) ? $conf['help'] : ''; ?>" value="<?php if(isset($settings->_extensions[$extname][$confkey])) echo $settings->_extensions[$extname][$confkey]; ?>" size="<?php echo $conf['size']; ?>" /> <input type="text" name="<?php echo "extensions[".$extname."][".$confkey."]"; ?>" title="<?php echo isset($conf['help']) ? $conf['help'] : ''; ?>" value="<?php if(isset($settings->_extensions[$extname][$confkey])) echo $settings->_extensions[$extname][$confkey]; ?>" <?php echo isset($conf['size']) ? 'size="'.$conf['size'].'"' : ""; ?>" />
<?php <?php
} }
?> ?>