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

prevent php8-warnings, closes #3122

Closes #3122

Merge request studip/studip!2104
parent 3a0d9ac4
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class NewsWidget extends CorePlugin implements PortalPlugin ...@@ -29,7 +29,7 @@ class NewsWidget extends CorePlugin implements PortalPlugin
$response = $controller->relayWithRedirect('news/display/studip'); $response = $controller->relayWithRedirect('news/display/studip');
$template = $GLOBALS['template_factory']->open('shared/string'); $template = $GLOBALS['template_factory']->open('shared/string');
$template->content = $response->body; $template->content = $response->body;
$icons = [];
if (StudipNews::CountUnread() > 0) { if (StudipNews::CountUnread() > 0) {
$navigation = new Navigation('', 'dispatch.php/news/visit_all'); $navigation = new Navigation('', 'dispatch.php/news/visit_all');
$navigation->setImage(Icon::create('refresh', 'clickable', ["title" => _('Alle als gelesen markieren')]), ['class' => 'visit-all']); $navigation->setImage(Icon::create('refresh', 'clickable', ["title" => _('Alle als gelesen markieren')]), ['class' => 'visit-all']);
......
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