From d66d9bd4920f4bacdb5db581b6b62d12249ee9d0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 24 Jun 2004 05:52:27 +0000 Subject: [PATCH] Fix for the is_a() reimplementation on old PHP versions. I swear I thought this had been checked in ages ago... --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } } -- 2.20.1