From: Gunnar Wrobel Date: Wed, 9 Sep 2009 07:23:30 +0000 (+0200) Subject: instanceOf instead of is_a() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3874056f3ce765158f56e6191f62a31a289bb273;p=horde.git instanceOf instead of is_a() --- diff --git a/framework/Kolab_Format/lib/Horde/Kolab/Format/Xml.php b/framework/Kolab_Format/lib/Horde/Kolab/Format/Xml.php index 5c5a3b2c9..7f690cf02 100644 --- a/framework/Kolab_Format/lib/Horde/Kolab/Format/Xml.php +++ b/framework/Kolab_Format/lib/Horde/Kolab/Format/Xml.php @@ -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 {