Skip to content
Snippets Groups Projects
Commit 768defef authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

prevent warning in correction view for tb exercise

parent 457d2086
No related branches found
No related tags found
1 merge request!9Resolve "PHP8-Warnungen"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</ul> </ul>
<div id="commented-<?= $exercise->id ?>"> <div id="commented-<?= $exercise->id ?>">
<? if ($edit_solution): ?> <? if ($!empty(edit_solution)): ?>
<? if ($exercise->getLayout() === 'markup'): ?> <? if ($exercise->getLayout() === 'markup'): ?>
<? $answer = $response[0] ?> <? $answer = $response[0] ?>
<? elseif ($exercise->getLayout() === 'code'): ?> <? elseif ($exercise->getLayout() === 'code'): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment