get rid of error message when plugin has no config options

This commit is contained in:
Garvin Hicking 2008-12-16 15:12:35 +00:00
parent 72c1c542b7
commit 5175be92f3

View File

@ -360,6 +360,10 @@ function placement_box($name, $val, $is_plugin_editable = false, $is_event = fal
function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_names, $showTable = true, $showSubmit = true, $showExample = true, $spawnNuggets = true, $postKey = 'plugin') {
global $serendipity;
if (empty($config_names)) {
return false;
}
if ($showSubmit && $postKey != 'plugin') {
?>
<div style="margin: 0px auto 0px 0px; text-align: right">
@ -375,6 +379,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
$elcount = 0;
$htmlnugget = array();
foreach ($config_names as $config_item) {
$elcount++;
$cbag = new serendipity_property_bag;