@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @return bool |
25 | 25 | * test if a category exist |
26 | 26 | */ |
27 | - private function getTestCategoryExist($name, $id=null) { |
|
27 | + private function getTestCategoryExist($name, $id = null) { |
|
28 | 28 | $dbc = App::getDb(); |
29 | 29 | |
30 | 30 | if ($id === null) { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $count = count($categories); |
119 | 119 | if ((is_array($categories)) && ($count > 0)) { |
120 | - for ($i=0 ; $i<$count ; $i++) { |
|
120 | + for ($i = 0; $i < $count; $i++) { |
|
121 | 121 | if ($this->getTestCategoryExist($categories[$i]) != false) { |
122 | 122 | $dbc->insert("ID_category", $this->getTestCategoryExist($categories[$i]))->insert("ID_article", $id_article)->into("_blog_article_category")->set(); |
123 | 123 | } |