@@ -206,16 +206,16 @@ private function addSubscription(SimpleXMLElement $xml, array $tags) {
206206 $ hash = md5 ($ title . $ spout . json_encode ($ data ));
207207 if (array_key_exists ($ hash , $ this ->imported )) {
208208 $ this ->imported [$ hash ]['tags ' ] = array_unique (array_merge ($ this ->imported [$ hash ]['tags ' ], $ tags ));
209- $ tags = implode ( ' , ' , $ this ->imported [$ hash ]['tags ' ]) ;
209+ $ tags = $ this ->imported [$ hash ]['tags ' ];
210210 $ this ->sourcesDao ->edit ($ this ->imported [$ hash ]['id ' ], $ title , $ tags , '' , $ spout , $ data );
211211 \F3 ::get ('logger ' )->debug ("OPML import: updated tags for ' $ title' " );
212212 } elseif ($ id = $ this ->sourcesDao ->checkIfExists ($ title , $ spout , $ data )) {
213213 $ tags = array_unique (array_merge ($ this ->sourcesDao ->getTags ($ id ), $ tags ));
214- $ this ->sourcesDao ->edit ($ id , $ title , implode ( ' , ' , $ tags) , '' , $ spout , $ data );
214+ $ this ->sourcesDao ->edit ($ id , $ title , $ tags , '' , $ spout , $ data );
215215 $ this ->imported [$ hash ] = ['id ' => $ id , 'tags ' => $ tags ];
216216 \F3 ::get ('logger ' )->debug ("OPML import: updated tags for ' $ title' " );
217217 } else {
218- $ id = $ this ->sourcesDao ->add ($ title , implode ( ' , ' , $ tags) , '' , $ spout , $ data );
218+ $ id = $ this ->sourcesDao ->add ($ title , $ tags , '' , $ spout , $ data );
219219 $ this ->imported [$ hash ] = ['id ' => $ id , 'tags ' => $ tags ];
220220 \F3 ::get ('logger ' )->debug ("OPML import: successfully imported ' $ title' " );
221221 }
0 commit comments