From: Brion Vibber Date: Thu, 24 Jun 2004 05:52:27 +0000 (+0000) Subject: Fix for the is_a() reimplementation on old PHP versions. I swear I thought X-Git-Tag: 1.5.0alpha1~2787 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d66d9bd4920f4bacdb5db581b6b62d12249ee9d0;p=lhc%2Fweb%2Fwiklou.git Fix for the is_a() reimplementation on old PHP versions. I swear I thought this had been checked in ages ago... --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 7e4d9117a0..08b916276e 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -40,8 +40,8 @@ if( !function_exists('is_a') ) { # Exists in PHP 4.2.0+ function is_a( $object, $class_name ) { return - (strcasecmp( get_class( $object, $class_name ) == 0) || - is_subclass_of( $object, $class_name ) ); + (strcasecmp( get_class( $object ), $class_name ) == 0) || + is_subclass_of( $object, $class_name ); } }