Display information that there are no settings.

This commit is contained in:
Michal Čihař
2006-04-26 14:11:32 +00:00
parent 161d2eb2aa
commit 1d3b486a20
2 changed files with 10 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2006-04-26 Michal Čihař <michal@cihar.com>
* libraries/plugin_interface.lib.php:
- Display information that there are no settings.
2006-04-26 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* themes/*:
updated themes;

View File

@@ -243,8 +243,12 @@ function PMA_pluginGetOptions($section, &$list)
if (isset($val['options'])) {
$ret .= '<table class="form">';
$ret .= '<tbody>';
foreach ($val['options'] as $id => $opt) {
$ret .= PMA_pluginGetOneOption($section, $plugin_name, $id, $opt);
if (count($val['options']) == 0) {
$ret .= '<tr><td colspan="2">' . $GLOBALS['strNoOptions'] . '</td></tr>';
} else {
foreach ($val['options'] as $id => $opt) {
$ret .= PMA_pluginGetOneOption($section, $plugin_name, $id, $opt);
}
}
$ret .= '</tbody>';
$ret .= '</table>';