diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-10-17 14:50:20 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-10-17 14:50:20 +0000 |
| commit | 4695506d9ea6d0dce90e16f12ae0bb215ce1a01b (patch) | |
| tree | a5735282a9fa4f1a5f7112608f5b3310584eb16a /app/views/files/index.php | |
| parent | 169c42d48f6c9a3e9981dea4713ba0b9176dd41e (diff) | |
fix php8 warnings, fixes #1679
Closes #1679
Merge request studip/studip!1084
Diffstat (limited to 'app/views/files/index.php')
| -rw-r--r-- | app/views/files/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/files/index.php b/app/views/files/index.php index a0fc2bc..94ae3f4 100644 --- a/app/views/files/index.php +++ b/app/views/files/index.php @@ -1,6 +1,6 @@ <? if ($topFolder): ?> <?php - if (!$controllerpath) { + if (empty($controllerpath)) { $controllerpath = 'files/index'; if ($topFolder->range_type !== 'user') { $controllerpath = $topFolder->range_type . '/' . $controllerpath; @@ -81,7 +81,7 @@ } ?> - <? if ($show_file_search) : ?> + <? if (!empty($show_file_search)) : ?> <form class="default" method="get" action="<?= $controller->link_for('files_dashboard/search') ?>"> <?= $this->render_partial('files_dashboard/_input-group-search') ?> </form> |
