Skip to content
Snippets Groups Projects
Commit e057092e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

prevent php8 warnings, fixes #4369

Closes #4369

Merge request studip/studip!3168
parent 6dc27317
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
$pagination->set_attribute('num_postings', $count); $pagination->set_attribute('num_postings', $count);
$pagination->set_attribute('page', $page); $pagination->set_attribute('page', $page);
// ARGH! // ARGH!
$page_link = reset(explode('?', $controller->action_url('index'))) . '?page_files=%s'; $page_link = explode('?', $controller->action_url('index'))[0] . '?page_files=%s';
$pagination->set_attribute('pagelink', $page_link); $pagination->set_attribute('pagelink', $page_link);
echo $pagination->render(); echo $pagination->render();
?> ?>
......
...@@ -92,7 +92,7 @@ class MvvFile extends ModuleManagementModel ...@@ -92,7 +92,7 @@ class MvvFile extends ModuleManagementModel
*/ */
public function getRangeType() public function getRangeType()
{ {
if ($this->ranges) { if (count($this->ranges) > 0) {
return $this->ranges[0]->range_type; return $this->ranges[0]->range_type;
} }
return ''; return '';
......
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