mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[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
This commit is contained in:
parent
641a9e5441
commit
1aea572aca
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue