Skip to content
Snippets Groups Projects
Commit 71aa1aad authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

don't try to serialize SORM instance, fixes #1137

Closes #1137

Merge request studip/studip!679
parent fa2ab01c
No related branches found
No related tags found
No related merge requests found
......@@ -54,9 +54,10 @@ class Semester extends \RESTAPI\RouteMap
$this->notFound();
}
$this->etag(md5(serialize($semester)));
$semester_json = $this->semesterToJSON($semester);
$this->etag(md5(serialize($semester_json)));
return $this->semesterToJSON($semester);
return $semester_json;
}
private function semesterToJSON($semester)
......
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