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

prevent php8 warnings, fixes #4369

Closes #4369

Merge request studip/studip!3168
parent 623dbd90
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@
$pagination->set_attribute('num_postings', $count);
$pagination->set_attribute('page', $page);
// 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);
echo $pagination->render("shared/pagechooser");
?>
......
......@@ -92,7 +92,7 @@ class MvvFile extends ModuleManagementModel
*/
public function getRangeType()
{
if ($this->ranges) {
if (count($this->ranges) > 0) {
return $this->ranges[0]->range_type;
}
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