]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
format_article_labels: bail out if passed something other than array
[tt-rss.git] / include / functions.php
index 306014d96e272f302eef5924df9bd26104945b51..018520648d1162f17bd7ff21905edd9320ae4c17 100644 (file)
 
        function format_article_labels($labels, $id) {
 
+               if (is_array($labels)) return '';
+
                $labels_str = "";
 
                foreach ($labels as $l) {