From 1d3b486a2003f5428731648e0f2ea51b8b9948ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 26 Apr 2006 14:11:32 +0000 Subject: [PATCH] Display information that there are no settings. --- ChangeLog | 4 ++++ libraries/plugin_interface.lib.php | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 64942527a..967a94d4e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-04-26 Michal Čihař + * libraries/plugin_interface.lib.php: + - Display information that there are no settings. + 2006-04-26 Sebastian Mendel * themes/*: updated themes; diff --git a/libraries/plugin_interface.lib.php b/libraries/plugin_interface.lib.php index 97c054e38..789eaff24 100644 --- a/libraries/plugin_interface.lib.php +++ b/libraries/plugin_interface.lib.php @@ -243,8 +243,12 @@ function PMA_pluginGetOptions($section, &$list) if (isset($val['options'])) { $ret .= ''; $ret .= ''; - foreach ($val['options'] as $id => $opt) { - $ret .= PMA_pluginGetOneOption($section, $plugin_name, $id, $opt); + if (count($val['options']) == 0) { + $ret .= ''; + } else { + foreach ($val['options'] as $id => $opt) { + $ret .= PMA_pluginGetOneOption($section, $plugin_name, $id, $opt); + } } $ret .= ''; $ret .= '
' . $GLOBALS['strNoOptions'] . '
';