updateArticle Anpassungen
This commit is contained in:
@@ -62,7 +62,7 @@ class LocalArticleManager implements ArticleManagerDAO {
|
||||
$this->saveArticle($articles);
|
||||
}
|
||||
|
||||
public function updateArticle($article, $author)
|
||||
public function updateArticle($id, $article, $author)
|
||||
{
|
||||
if (empty($article)) {
|
||||
return;
|
||||
@@ -79,9 +79,9 @@ class LocalArticleManager implements ArticleManagerDAO {
|
||||
|
||||
// Beitrag aktualisieren:
|
||||
foreach ($articles as $index => $storedArticle) {
|
||||
if (isset($storedArticle['id']) && $storedArticle['id'] == $article->getId()) {
|
||||
if (isset($storedArticle['id']) && $storedArticle['id'] == $id) {
|
||||
$articles[$index] = [
|
||||
"id" => $article->getId(),
|
||||
"id" => $id,
|
||||
"title" => $article->getTitle(),
|
||||
"content" => $article->getContent(),
|
||||
"author" => $article->getAuthor(),
|
||||
|
||||
Reference in New Issue
Block a user