mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Switch check for is_string
This commit is contained in:
parent
2e13ae746f
commit
cd716fb61b
@ -333,7 +333,7 @@ class MarkedSet
|
||||
$parentNode->setField('markingClasses', $this->markingClasses($data['node']));
|
||||
|
||||
// Evaluate custom context
|
||||
if (!is_array($context) && is_callable($context)) {
|
||||
if (!is_string($context) && is_callable($context)) {
|
||||
$context = call_user_func($context, $data['node']);
|
||||
}
|
||||
if ($context) {
|
||||
|
Loading…
Reference in New Issue
Block a user