From 96f28661333930528079302f07250b5b44e3cf7c Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 22 Aug 2010 12:02:36 +0000 Subject: [PATCH] Some extensions like to pass an array for the callback, and method_exists() doesn't like that --- includes/installer/DatabaseUpdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index dae896a029..ccf008b37c 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -58,7 +58,7 @@ abstract class DatabaseUpdater { $this->getOldGlobalUpdates() ); foreach ( $this->updates as $params ) { $func = array_shift( $params ); - if( method_exists( $this, $func ) ) { + if( !is_array( $func ) && method_exists( $this, $func ) ) { $func = array( $this, $func ); } call_user_func_array( $func, $params ); -- 2.20.1