]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: properly define
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Nov 2010 13:31:15 +0000 (16:31 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Nov 2010 13:31:15 +0000 (16:31 +0300)
functions.php

index 54847cc74b5709e7f4bfcfc68c84ddb2a93ddaa8..2d0f406157b0b2be94d592316d336ba8c86299d4 100644 (file)
 
                                // parse <category> entries into tags
 
+                               $additional_tags = array();
+
                                if ($use_simplepie) {
 
-                                       $additional_tags = array();
                                        $additional_tags_src = $item->get_categories();
                                        
                                        if (is_array($additional_tags_src)) {
 
                                        $t_ctr = $item['category#'];
 
-                                       $additional_tags = false;
-       
                                        if ($t_ctr == 0) {
-                                               $additional_tags = false;
+                                               $additional_tags = array();
                                        } else if ($t_ctr > 0) {
                                                $additional_tags = array($item['category']);
 
                                        $t_ctr = $item['dc']['subject#'];
        
                                        if ($t_ctr > 0) {
-                                               $additional_tags = array($item['dc']['subject']);
+                                               array_push($additional_tags, $item['dc']['subject']);
 
                                                for ($i = 0; $i <= $t_ctr; $i++ ) {
                                                        if ($item['dc']["subject#$i"]) {