diff options
| author | 2013-04-17 19:24:21 +0200 | |
|---|---|---|
| committer | 2013-04-17 19:24:21 +0200 | |
| commit | 244026874aba991e7feb37f74a61b192f1bda5ac (patch) | |
| tree | 9537a1e167a596ad63cf3f3899325c22263ce6a0 /lib | |
| parent | 392672ab2771c6d22f55017c4ed64a0e00945b23 (diff) | |
Fix issue #61 : amélioration import OPML
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_rss.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index b9202755b..81a98590e 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -124,7 +124,11 @@ function opml_import ($xml) { } if ($title) { - $cat = new Category ($title); + $catDAO = new CategoryDAO (); + $cat = $catDAO->searchByName ($title); + if ($cat === false) { + $cat = new Category ($title); + } $categories[] = $cat; $feeds = array_merge ($feeds, getFeedsOutline ($outline, $cat->id ())); |
