From 1872a8ee9ea6f6eb920f863857e84644ba463608 Mon Sep 17 00:00:00 2001 From: David Siegfried Date: Wed, 8 Mar 2023 16:19:11 +0000 Subject: prevent php-warnings, closes #2297 Closes #2297 Merge request studip/studip!1519 --- app/views/admission/courseset/configure.php | 18 ++++++++++-------- app/views/admission/restricted_courses/index.php | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/views/admission/courseset/configure.php b/app/views/admission/courseset/configure.php index 99919ef..cb0f81a 100644 --- a/app/views/admission/courseset/configure.php +++ b/app/views/admission/courseset/configure.php @@ -10,7 +10,7 @@ $courseIds = $courseset ? $courseset->getCourses() : []; // Load assigned user list IDs. $userlistIds = $courseset ? $courseset->getUserlists() : []; -if ($flash['error']) { +if (isset($flash['error'])) { echo MessageBox::error($flash['error']); } ?> @@ -62,9 +62,9 @@ if ($flash['error']) { - + + class="institute" onclick="STUDIP.Admission.getCourses( 'url_for('admission/courseset/instcourses', $courseset ? $courseset->getId() : '') ?>')"/> @@ -77,9 +77,13 @@ if ($flash['error']) {
- _('Einrichtung hinzufügen')])->asImg(16, ["alt" => _('Einrichtung hinzufügen'), "onclick" => "STUDIP.Admission.updateInstitutes($('input[name=\"institute_id\"]').val(), '".$controller->url_for('admission/courseset/institutes',$courseset?$courseset->getId():'')."', '".$controller->url_for('admission/courseset/instcourses',$courseset?$courseset->getId():'')."', 'add')"]) ?> + asImg([ + 'title' => _('Einrichtung hinzufügen'), + 'alt' => _('Einrichtung hinzufügen'), + 'onclick' => "STUDIP.Admission.updateInstitutes($('input[name=\"institute_id\"]').val(), '" .$controller->url_for('admission/courseset/institutes',$courseset?$courseset->getId() : '') . "', '" . $controller->url_for('admission/courseset/instcourses',$courseset?$courseset->getId() : '') . "', 'add')" + ]) ?> - _("Suche starten")])->asImg()?> + asImg(['title' => _("Suche starten")])?>
@@ -101,7 +105,7 @@ if ($flash['error']) {