From: Michael M Slusarz Date: Wed, 8 Sep 2010 17:19:47 +0000 (-0600) Subject: Bug #9239: Make sure instance is a tree object X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0397f464bb48d2d448ec094252bb11380d15f021;p=horde.git Bug #9239: Make sure instance is a tree object --- diff --git a/imp/lib/Injector/Binder/Imaptree.php b/imp/lib/Injector/Binder/Imaptree.php index c465ea82b..004ce197d 100644 --- a/imp/lib/Injector/Binder/Imaptree.php +++ b/imp/lib/Injector/Binder/Imaptree.php @@ -45,7 +45,7 @@ class IMP_Injector_Binder_Imaptree implements Horde_Injector_Binder } } - if (is_null($instance)) { + if (!($instance instanceof IMP_Imap_Tree)) { $instance = new IMP_Imap_Tree(); }