format_article_labels: bail out if passed something other than array

This commit is contained in:
Andrew Dolgov 2013-04-16 01:02:42 +04:00
parent 5e3d5480f7
commit 76e087b017
1 changed files with 2 additions and 0 deletions

View File

@ -3450,6 +3450,8 @@
function format_article_labels($labels, $id) {
if (is_array($labels)) return '';
$labels_str = "";
foreach ($labels as $l) {