summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-09 16:31:15 +0300
committerAndrew Dolgov <[email protected]>2010-11-09 16:31:15 +0300
commite75df19d5061bde98acdb1fcca7b8471097c6d92 (patch)
tree29bbb0d18be4c77ab22a9f886e659262402007a5
parentbc05c3d19cfb87f3cb0462564b4606ea4273cecf (diff)
update_rss_feed: properly define
-rw-r--r--functions.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/functions.php b/functions.php
index 54847cc74..2d0f40615 100644
--- a/functions.php
+++ b/functions.php
@@ -960,9 +960,10 @@
// 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)) {
@@ -980,10 +981,8 @@
$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']);
@@ -1007,7 +1006,7 @@
$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"]) {