From: Chuck Hagenbuch Date: Mon, 26 Apr 2010 01:17:16 +0000 (-0400) Subject: Don't try to filter an empty object X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d31fa47e3db0ca4f270495832700169e652bd1f5;p=horde.git Don't try to filter an empty object --- diff --git a/framework/Injector/lib/Horde/Injector.php b/framework/Injector/lib/Horde/Injector.php index 4f5fce754..77fe90bb7 100644 --- a/framework/Injector/lib/Horde/Injector.php +++ b/framework/Injector/lib/Horde/Injector.php @@ -199,7 +199,9 @@ class Horde_Injector implements Horde_Injector_Scope public function createInstance($interface) { $instance = $this->getBinder($interface)->create($this); - $this->runFilters($instance); + if ($instance) { + $this->runFilters($instance); + } return $instance; }