Bug #9239: Make sure instance is a tree object
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 8 Sep 2010 17:19:47 +0000 (11:19 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 8 Sep 2010 17:19:47 +0000 (11:19 -0600)
imp/lib/Injector/Binder/Imaptree.php

index c465ea8..004ce19 100644 (file)
@@ -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();
         }