diff options
author | Andrew Dolgov <[email protected]> | 2017-01-22 10:18:43 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-01-22 10:18:43 +0300 |
commit | 967f0619c781a01a67f1d3c69946f63d5a4c1e54 (patch) | |
tree | f6a2ce79924dd924985b2f52b2666dc371d9a3ef /include | |
parent | 0047f2578f126cb6de2eed928e86ed7340c3854d (diff) |
force ngettext() count argument type to string
Diffstat (limited to 'include')
-rw-r--r-- | include/feedbrowser.php | 2 | ||||
-rw-r--r-- | include/functions2.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/feedbrowser.php b/include/feedbrowser.php index 800bcd970..4772420ab 100644 --- a/include/feedbrowser.php +++ b/include/feedbrowser.php @@ -81,7 +81,7 @@ $class = ($feedctr % 2) ? "even" : "odd"; if ($line['articles_archived'] > 0) { - $archived = sprintf(_ngettext("%d archived article", "%d archived articles", $line['articles_archived']), $line['articles_archived']); + $archived = sprintf(_ngettext("%d archived article", "%d archived articles", (int) $line['articles_archived']), $line['articles_archived']); $archived = " <span class='subscribers'>($archived)</span>"; } else { $archived = ''; 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) { |