Diff of /plugins/plugin.php [40ad84] .. [6591d4] Maximize Restore

  Switch to side-by-side view

--- a/plugins/plugin.php
+++ b/plugins/plugin.php
@@ -20,7 +20,7 @@
 	* @param array object instances or null to register all classes starting by 'Adminer'
 	*/
 	function AdminerPlugin($plugins) {
-		if (!isset($plugins)) {
+		if ($plugins === null) {
 			$plugins = array();
 			foreach (get_declared_classes() as $class) {
 				if (preg_match('~^Adminer.~i', $class) && strcasecmp($this->_findRootClass($class), 'Adminer')) { // can use interface since PHP 5
@@ -54,7 +54,7 @@
 					case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break;
 					default: trigger_error('Too many parameters.', E_USER_WARNING);
 				}
-				if (isset($return)) {
+				if ($return !== null) {
 					return $return;
 				}
 			}