Switch check for is_string

This commit is contained in:
Robbie Averill 2018-05-10 10:32:00 +12:00
parent 2e13ae746f
commit cd716fb61b

View File

@ -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) {