1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00
This commit is contained in:
Ryan Cramer
2025-03-28 13:21:05 -04:00
parent bc8a1959f3
commit dae4e59db9

View File

@@ -177,8 +177,8 @@ class PageComparison {
// action is just a string to return
$result = $action;
}
} else if(is_callable($action)) {
} else if(is_callable($action) && (!is_object($action) || $action instanceof \Closure)) {
// action is callable
$result = call_user_func_array($action, array($val, $key, $page));