From 76e087b0173743657a2066dd2fd3446b6a34d558 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Apr 2013 01:02:42 +0400 Subject: [PATCH] format_article_labels: bail out if passed something other than array --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.39.5