aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-02 22:10:33 +0200
committerfilip <filip.komar@gmail.com>2020-10-02 22:10:33 +0200
commit2bec8b30e80db2b297c3263eeacb9c3f42a2109b (patch)
tree8bf7ca16849ba92089f34dde34628ffbe4b47073 /lib
parentbf87ce1ae9f81c87cf050f76f26dfadb667cb5d5 (diff)
downloadwww-2bec8b30e80db2b297c3263eeacb9c3f42a2109b.tar
www-2bec8b30e80db2b297c3263eeacb9c3f42a2109b.tar.gz
www-2bec8b30e80db2b297c3263eeacb9c3f42a2109b.tar.bz2
www-2bec8b30e80db2b297c3263eeacb9c3f42a2109b.tar.xz
www-2bec8b30e80db2b297c3263eeacb9c3f42a2109b.zip
bugfix for single match of eng blog if eng planet and localized planet and blog is 0
Diffstat (limited to 'lib')
-rw-r--r--lib/news.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/news.php b/lib/news.php
index 47fc46ac4..457ae2b12 100644
--- a/lib/news.php
+++ b/lib/news.php
@@ -235,7 +235,7 @@ function prepare_fresh_blog_post_titles($eng_planet_url, $eng_blog_url, $loc_pla
// prepare fresh enough English blog posts if there's no English planet posts
if (0 == count($fresh_eng_posts)) {
$eng_blog_posts = get_feed($eng_blog_url . '?type=rss10', $req_quantity);
- if (count($eng_blog_posts) > 1) {
+ if (count($eng_blog_posts) >= 1) {
$eng_posts_title = _r('Blog');
$first_source = 4;
foreach ($eng_blog_posts as $blog_post) {