Skip to content
Snippets Groups Projects
Commit b9d1cca9 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

do not accept strings as callables, fixes #2424

Closes #2424

Merge request studip/studip!1620
parent d205fc6a
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ class FieldsetFilter extends \Neomerx\JsonApi\Representation\FieldSetFilter ...@@ -36,7 +36,7 @@ class FieldsetFilter extends \Neomerx\JsonApi\Representation\FieldSetFilter
*/ */
private function resolveValue($value) private function resolveValue($value)
{ {
if (is_callable($value)) { if (!is_string($value) && is_callable($value)) {
return $value(); return $value();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment