Skip to content

Commit ba24e91

Browse files
committed
import: fix OMPL importer
It was forgotten during the API clean-ups: #948
1 parent 09f5a08 commit ba24e91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

controllers/Opml.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)