From 896558faddc81b93e0afb73d56bc7f7962086af8 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Thu, 8 Aug 2019 21:20:48 +1000 Subject: Fixes count(): Parameter must be an array or an object that implements Countable as well as PHP 7.3 regression in users from upstream 3a41c24e6e5bcea2f4b9f328ddf5ff0cb8a8b2e8 --- templates/mod/recent_posts.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'templates/mod/recent_posts.html') diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index cb4f1726..2a166723 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -1,19 +1,19 @@ - -{% if not posts|count %} -

({% trans 'There are no active posts.' %})

-{% else %} -

Viewing last {{ limit|e }} posts

-

View 25 | 50 | 100

- Erase local data - {% for post in posts %} - {% if not post.thread %} - {% set thread = post.id %} - {% else %} - {% set thread = post.thread %} - {% endif %} -

/{{ post.board }}/{{ post.id }}
- {{ post.built }} -
- {% endfor %} -{% endif %} -Next {{ limit }} posts + +{% if posts|default([])|length %} +

({% trans 'There are no active posts.' %})

+{% else %} +

Viewing last {{ limit|e }} posts

+

View 25 | 50 | 100

+ Erase local data + {% for post in posts %} + {% if not post.thread %} + {% set thread = post.id %} + {% else %} + {% set thread = post.thread %} + {% endif %} +

/{{ post.board }}/{{ post.id }}
+ {{ post.built }} +
+ {% endfor %} +{% endif %} +Next {{ limit }} posts -- cgit v1.3