Do not append empty values
This commit is contained in:
parent
ffb4ee3a61
commit
fad20d1065
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue