@@ -85,11 +85,11 @@ |
||
85 | 85 | |
86 | 86 | $postId = $postModel->newPost($title, $postImage, $idCategory, $article, $idUser, $published, $onFrontpage, $postSlug); |
87 | 87 | |
88 | - echo "<p>new post ID : " . $postId . "</p>"; |
|
88 | + echo "<p>new post ID : ".$postId."</p>"; |
|
89 | 89 | |
90 | - if(isset($posts["tags"])){ |
|
90 | + if (isset($posts["tags"])) { |
|
91 | 91 | foreach ($posts["tags"] as $tag) { |
92 | - if(isset($tag["id"])){ |
|
92 | + if (isset($tag["id"])) { |
|
93 | 93 | $tagModel->addTagToPost($postId, $tag["id"]); |
94 | 94 | continue; |
95 | 95 | } |