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

prevent php8-warnings, closes #3420

Closes #3420

Merge request studip/studip!2324
parent 4a8756dd
No related branches found
No related tags found
No related merge requests found
...@@ -89,14 +89,8 @@ class MyInstitutesController extends AuthenticatedController ...@@ -89,14 +89,8 @@ class MyInstitutesController extends AuthenticatedController
protected function check_institute($institute): bool protected function check_institute($institute): bool
{ {
if ($institute['visitdate'] || $institute['last_modified']) { if ($institute['visitdate'] <= $institute['chdate']) {
if ($institute['visitdate'] <= $institute["chdate"] || (!empty($institute['last_modified']) && $institute['last_modified'] > 0)) { return true;
$last_modified = ($institute['visitdate'] <= $institute["chdate"]
&& $institute["chdate"] > $institute['last_modified'] ? $institute["chdate"] : $institute['last_modified']);
if ($last_modified) {
return true;
}
}
} }
$plugins = $institute['navigation']; $plugins = $institute['navigation'];
......
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