]> git.joonet.de Git - adminer.git/commitdiff
Do not append empty values
authorJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 12:48:50 +0000 (13:48 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 12:48:50 +0000 (13:48 +0100)
plugins/plugin.php

index c910edb6a0e3434df941600fe0dce87bbd6459f0..e7b1df14e8f293e808b201c9791900c95d45124d 100644 (file)
@@ -62,7 +62,10 @@ class AdminerPlugin extends Adminer {
                $return = $this->_callParent($function, $args);
                foreach ($this->plugins as $plugin) {
                        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;