Article.php + getArticle Anpassungen
Article-Klasse ist nun syntaktisch korrekt. getArticle gibt nun als Rückgabe einen Typ Article zurück
This commit is contained in:
@@ -93,7 +93,7 @@ class LocalArticleManager implements ArticleManagerDAO {
|
||||
|
||||
foreach ($articles as $article) {
|
||||
if (isset($article['id']) && $article['id'] == $id) {
|
||||
return $article;
|
||||
return new Article(intval($article['id']), $article['title'], $article['content'], $article['author'], $article['category'], $article['tags'], $article['creationDate']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user