mirror of https://tt-rss.org/git/tt-rss.git
update_rss_feed: properly define
This commit is contained in:
parent
bc05c3d19c
commit
e75df19d50
|
@ -960,9 +960,10 @@
|
||||||
|
|
||||||
// parse <category> entries into tags
|
// parse <category> entries into tags
|
||||||
|
|
||||||
|
$additional_tags = array();
|
||||||
|
|
||||||
if ($use_simplepie) {
|
if ($use_simplepie) {
|
||||||
|
|
||||||
$additional_tags = array();
|
|
||||||
$additional_tags_src = $item->get_categories();
|
$additional_tags_src = $item->get_categories();
|
||||||
|
|
||||||
if (is_array($additional_tags_src)) {
|
if (is_array($additional_tags_src)) {
|
||||||
|
@ -980,10 +981,8 @@
|
||||||
|
|
||||||
$t_ctr = $item['category#'];
|
$t_ctr = $item['category#'];
|
||||||
|
|
||||||
$additional_tags = false;
|
|
||||||
|
|
||||||
if ($t_ctr == 0) {
|
if ($t_ctr == 0) {
|
||||||
$additional_tags = false;
|
$additional_tags = array();
|
||||||
} else if ($t_ctr > 0) {
|
} else if ($t_ctr > 0) {
|
||||||
$additional_tags = array($item['category']);
|
$additional_tags = array($item['category']);
|
||||||
|
|
||||||
|
@ -1007,7 +1006,7 @@
|
||||||
$t_ctr = $item['dc']['subject#'];
|
$t_ctr = $item['dc']['subject#'];
|
||||||
|
|
||||||
if ($t_ctr > 0) {
|
if ($t_ctr > 0) {
|
||||||
$additional_tags = array($item['dc']['subject']);
|
array_push($additional_tags, $item['dc']['subject']);
|
||||||
|
|
||||||
for ($i = 0; $i <= $t_ctr; $i++ ) {
|
for ($i = 0; $i <= $t_ctr; $i++ ) {
|
||||||
if ($item['dc']["subject#$i"]) {
|
if ($item['dc']["subject#$i"]) {
|
||||||
|
|
Loading…
Reference in New Issue