aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/coursewizardsteps/StudyAreasWizardStep.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-09-28 09:50:22 +0000
committerMoritz Strohm <strohm@data-quest.de>2022-09-28 09:50:22 +0000
commit48960208784586e8ad9bde75626dc4e631e18711 (patch)
treee9248937013bfbb9432816d899dd2f46ca7cc620 /lib/classes/coursewizardsteps/StudyAreasWizardStep.php
parent408bdb87a4eca0e4ac2b6eb85f6271e2c8c27b42 (diff)
fix for BIESt #1016
Merge request studip/studip!625
Diffstat (limited to 'lib/classes/coursewizardsteps/StudyAreasWizardStep.php')
-rw-r--r--lib/classes/coursewizardsteps/StudyAreasWizardStep.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/coursewizardsteps/StudyAreasWizardStep.php b/lib/classes/coursewizardsteps/StudyAreasWizardStep.php
index 054f638..c0edda8 100644
--- a/lib/classes/coursewizardsteps/StudyAreasWizardStep.php
+++ b/lib/classes/coursewizardsteps/StudyAreasWizardStep.php
@@ -57,7 +57,7 @@ class StudyAreasWizardStep implements CourseWizardStep
* Someone works without JS activated, load all ancestors and
* children of open node.
*/
- if ($values['open_node']) {
+ if (!empty($values['open_node'])) {
$tpl->set_attribute('open_nodes',
$this->buildPartialSemTree(
StudipStudyArea::backwards(
@@ -68,7 +68,7 @@ class StudyAreasWizardStep implements CourseWizardStep
* Someone works without JS and has entered a search term:
* build the partial tree with search results.
*/
- if ($values['searchterm']) {
+ if (!empty($values['searchterm'])) {
$search = $this->searchSemTree($values['searchterm'], true);
if ($search) {
$tpl->set_attribute('open_nodes', $search);