diff --git a/app/views/resources/room_request/planning.php b/app/views/resources/room_request/planning.php index 364ee27e71f9d33eed3d78a17d8759a5acc2e65e..aeebb655c0b849bd1e48c45c91c47141a1df1e46 100644 --- a/app/views/resources/room_request/planning.php +++ b/app/views/resources/room_request/planning.php @@ -134,7 +134,7 @@ <?= MessageBox::info(_('Es wurde kein Raum ausgewählt!')) ?> <? endif ?> -<? if ($requests && $resource): ?> +<? if (isset($requests, $resource)): ?> <form class="default" method="post" action="<?= $controller->link_for('room_request/assign') ?>"> <table id="external-events" class="default request-list"> diff --git a/lib/classes/forms/RangeInput.php b/lib/classes/forms/RangeInput.php index 7a69e9eacfb6a88a1ea66561164b4d2d8f97291c..14334c766a0057046af87b3f6bfc8d8673f4f4a2 100644 --- a/lib/classes/forms/RangeInput.php +++ b/lib/classes/forms/RangeInput.php @@ -11,9 +11,9 @@ class RangeInput extends Input $template->name = $this->name; $template->value = $this->value; $template->id = md5(uniqid()); - $template->min = $this->attributes['min']; - $template->max = $this->attributes['max']; - $template->step = $this->attributes['step']; + $template->min = $this->attributes['min'] ?? null; + $template->max = $this->attributes['max'] ?? null; + $template->step = $this->attributes['step'] ?? null; $template->required = $this->required; $template->attributes = arrayToHtmlAttributes($this->attributes); return $template->render();