instanceOf instead of is_a()
authorGunnar Wrobel <p@rdus.de>
Wed, 9 Sep 2009 07:23:30 +0000 (09:23 +0200)
committerGunnar Wrobel <p@rdus.de>
Wed, 9 Sep 2009 07:23:30 +0000 (09:23 +0200)
framework/Kolab_Format/lib/Horde/Kolab/Format/Xml.php

index 5c5a3b2..7f690cf 100644 (file)
@@ -1011,7 +1011,7 @@ class Horde_Kolab_Format_Xml
         @include_once 'Horde/Prefs/CategoryManager.php';
         if ($this->_create_categories
             && class_exists('Prefs_CategoryManager')
-            && isset($prefs) && is_a($prefs, 'Prefs')) {
+            && isset($prefs) && $prefs instanceOf Prefs) {
             $cManager         = new Prefs_CategoryManager();
             $horde_categories = $cManager->get();
         } else {