Skip to content
Snippets Groups Projects
Commit ce855c18 authored by David Siegfried's avatar David Siegfried
Browse files

prevent php-warnings, closes #2248

Closes #2248

Merge request studip/studip!1481
parent 2753c656
No related branches found
No related tags found
No related merge requests found
......@@ -363,7 +363,7 @@
</article>
<? endif ?>
<? if ($study_areas && count($study_areas) > 0) : ?>
<? if (!empty($study_areas)) : ?>
<article class="studip">
<header>
<h1><?= _('Studienbereiche') ?></h1>
......
......@@ -6,6 +6,7 @@
* @var array $dont_open
* @var string $compulsory
*/
$layer = 0;
?>
<li>
<? if ($node->id !== 'root' && $node->required_children): ?>
......
......@@ -11,7 +11,7 @@ if (is_array($dates['regular']['turnus_data'])) foreach ($dates['regular']['turn
if ($cycle['desc'])
$cycle_output .= ', <i>' . htmlReady($cycle['desc']) . '</i>';
if ($show_room) :
if (!empty($show_room)) :
$cycle_output .= $this->render_partial('dates/_seminar_rooms', ['assigned' => $cycle['assigned_rooms'],
'freetext' => $cycle['freetext_rooms'],
'link' => $link
......
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