implement new version checking (2)
This commit is contained in:
parent
b72c3ef801
commit
da412ad3be
|
@ -2375,7 +2375,7 @@
|
||||||
if (!$items || !is_array($items)) $items = $rss->entries;
|
if (!$items || !is_array($items)) $items = $rss->entries;
|
||||||
if (!$items || !is_array($items)) $items = $rss;
|
if (!$items || !is_array($items)) $items = $rss;
|
||||||
|
|
||||||
if (!is_array($items)) {
|
if (!is_array($items) || count($items) == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2386,9 +2386,9 @@
|
||||||
|
|
||||||
$release_url = $last_item["link"];
|
$release_url = $last_item["link"];
|
||||||
|
|
||||||
if ($cur_version != $last_version) {
|
if ($cur_version == $last_version) {
|
||||||
return "<div class=\"notice\"><a target=\"_new\" href=\"$release_url\">
|
return "<div class=\"notice\"><a target=\"_new\" href=\"$release_url\">
|
||||||
New version of Tiny-Tiny RSS is available.</a></div>";
|
New version of Tiny-Tiny RSS ($last_version) is available.</a></div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue