mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Do not append empty values
This commit is contained in:
@@ -62,7 +62,10 @@ class AdminerPlugin extends Adminer {
|
|||||||
$return = $this->_callParent($function, $args);
|
$return = $this->_callParent($function, $args);
|
||||||
foreach ($this->plugins as $plugin) {
|
foreach ($this->plugins as $plugin) {
|
||||||
if (method_exists($plugin, $function)) {
|
if (method_exists($plugin, $function)) {
|
||||||
$return += call_user_func_array(array($plugin, $function), $args);
|
$value = call_user_func_array(array($plugin, $function), $args);
|
||||||
|
if ($value) {
|
||||||
|
$return += $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
Reference in New Issue
Block a user