From: Andrew Dolgov Date: Mon, 15 Apr 2013 21:02:42 +0000 (+0400) Subject: format_article_labels: bail out if passed something other than array X-Git-Tag: 1.7.9~25^2~208 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=76e087b0173743657a2066dd2fd3446b6a34d558;p=tt-rss.git format_article_labels: bail out if passed something other than array --- diff --git a/include/functions.php b/include/functions.php index 306014d9..01852064 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3450,6 +3450,8 @@ function format_article_labels($labels, $id) { + if (is_array($labels)) return ''; + $labels_str = ""; foreach ($labels as $l) {