]> git.wh0rd.org Git - tt-rss.git/commitdiff
category support for OPML export (fix again)
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 25 Nov 2005 13:37:44 +0000 (14:37 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 25 Nov 2005 13:37:44 +0000 (14:37 +0100)
opml.php

index 63f64a670f02abca950fcbceedc1ac7665b44eb5..8317b6450a6662cc3ab3ee3fdfe5f53883797009 100644 (file)
--- a/opml.php
+++ b/opml.php
 
                                if ($old_cat_title != $cat_title) {
                                        if ($old_cat_title) {
-                                               print "</outline>";     
+                                               print "</outline>\n";   
                                        }
 
-                                       print "<outline title=\"$cat_title\">";
+                                       if ($cat_title) {
+                                               print "<outline title=\"$cat_title\">\n";
+                                       }
 
                                        $old_cat_title = $cat_title;
                                }
                        }
 
-                       print "<outline text=\"$title\" xmlUrl=\"$url\"/>";
+                       print "<outline text=\"$title\" xmlUrl=\"$url\"/>\n";
                }
 
                if ($cat_mode && $old_cat_title) {
-                       print "</outline>";     
+                       print "</outline>\n";   
                }
 
                print "</body></opml>";