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

fix fatal error, fixes #25

parent 8977e428
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,12 @@ class ArticleController extends SchwarzesBrettController ...@@ -9,6 +9,12 @@ class ArticleController extends SchwarzesBrettController
} }
$this->article = SBArticle::find($id); $this->article = SBArticle::find($id);
if (!$this->article) {
$this->set_status(404);
$this->render_nothing();
return;
}
$this->article->visit(); $this->article->visit();
PageLayout::setTitle($this->article->titel . ' (' . $this->article->category->titel . ')'); PageLayout::setTitle($this->article->titel . ' (' . $this->article->category->titel . ')');
......
...@@ -2,6 +2,6 @@ pluginname=SchwarzesBrettPlugin ...@@ -2,6 +2,6 @@ pluginname=SchwarzesBrettPlugin
pluginclassname=SchwarzesBrettPlugin pluginclassname=SchwarzesBrettPlugin
pluginclassname=SchwarzesBrettWidget pluginclassname=SchwarzesBrettWidget
origin=IBIT origin=IBIT
version=3.10.2 version=3.10.3
studipMinVersion=3.3 studipMinVersion=3.3
description=Globales Schwarzes Brett fr Kleinanzeigen mit Kategorien (Gesuche/Angebote) description=Globales Schwarzes Brett fr Kleinanzeigen mit Kategorien (Gesuche/Angebote)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment