From 967f0619c781a01a67f1d3c69946f63d5a4c1e54 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 22 Jan 2017 10:18:43 +0300 Subject: force ngettext() count argument type to string --- include/functions2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions2.php') diff --git a/include/functions2.php b/include/functions2.php index 4535e6267..28477a0cf 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -1316,7 +1316,7 @@ $line = $p->hook_render_article($line); } - $num_comments = $line["num_comments"]; + $num_comments = (int) $line["num_comments"]; $entry_comments = ""; if ($num_comments > 0) { -- cgit v1.2.3