summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-16 01:02:42 +0400
committerAndrew Dolgov <[email protected]>2013-04-16 01:02:42 +0400
commit76e087b0173743657a2066dd2fd3446b6a34d558 (patch)
treeefab7497620e11abc421efe4396760c6dfe77683 /include
parent5e3d5480f7e154a897363770327001fe1b72f504 (diff)
format_article_labels: bail out if passed something other than array
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 306014d96..018520648 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) {