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

View File

@@ -178,7 +178,7 @@ class PageComparison {
$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));