diff options
author | Andrew Dolgov <[email protected]> | 2013-04-16 01:02:42 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-16 01:02:42 +0400 |
commit | 76e087b0173743657a2066dd2fd3446b6a34d558 (patch) | |
tree | efab7497620e11abc421efe4396760c6dfe77683 | |
parent | 5e3d5480f7e154a897363770327001fe1b72f504 (diff) |
format_article_labels: bail out if passed something other than array
-rw-r--r-- | include/functions.php | 2 |
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) { |