]> git.wh0rd.org - tt-rss.git/commitdiff
format_article_labels: bail out if passed something other than array
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 15 Apr 2013 21:02:42 +0000 (01:02 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 15 Apr 2013 21:02:42 +0000 (01:02 +0400)
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) {