Skip to content
Snippets Groups Projects
Commit e552f45f authored by David Siegfried's avatar David Siegfried
Browse files

prevent php-warnings, closes #1117

Closes #1117

Merge request studip/studip!669
parent c662a4c6
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ class Course_MessengerController extends AuthenticatedController
}
}
if (!$this->thread || Request::get("thread") === "new") {
$this->thread = array_pop(array_reverse($this->threads));
$threads = array_reverse($this->threads);
$this->thread = array_pop($threads);
}
$this->thread->markAsRead();
......
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