From 1aea572acab3f632e5ba15d8d0f3151421c50f83 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Tue, 9 Dec 2014 15:59:05 -0800 Subject: [PATCH] [ticket/13370] Allow calling class method in convertor framework directly. This change allows the usage of array($class, 'method')) directly instead of having to use the functionX syntax as follows: array('function1' => array($class, 'method'))) PHPBB3-13370 --- phpBB/install/install_convert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php index 17161b5eae..6a892a7373 100644 --- a/phpBB/install/install_convert.php +++ b/phpBB/install/install_convert.php @@ -2014,7 +2014,7 @@ class install_convert extends module { $value = $fields[1][$firstkey]; } - else if (is_array($fields[2])) + else if (is_array($fields[2]) && !is_callable($fields[2])) { // Execute complex function/eval/typecast $value = $fields[1];