1
0
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:
Jakub Vrana
2018-02-09 13:48:50 +01:00
parent ffb4ee3a61
commit fad20d1065

View File

@@ -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;