From: Alexandre Emsenhuber Date: Sun, 22 Aug 2010 12:02:36 +0000 (+0000) Subject: Some extensions like to pass an array for the callback, and method_exists() doesn... X-Git-Tag: 1.31.0-rc.0~35383 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=96f28661333930528079302f07250b5b44e3cf7c;p=lhc%2Fweb%2Fwiklou.git Some extensions like to pass an array for the callback, and method_exists() doesn't like that --- 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 );