diff --git a/functions.php b/functions.php index b62f27eaf..546a5f1d5 100644 --- a/functions.php +++ b/functions.php @@ -2375,9 +2375,9 @@ if (!$items || !is_array($items)) $items = $rss->entries; if (!$items || !is_array($items)) $items = $rss; - if (!is_array($items)) { + if (!is_array($items) || count($items) == 0) { return; - } + } $last_item = $items[0]; @@ -2386,10 +2386,10 @@ $release_url = $last_item["link"]; - if ($cur_version != $last_version) { + if ($cur_version == $last_version) { return "
"; - } + New version of Tiny-Tiny RSS ($last_version) is available."; + } } } ?>