]> git.wh0rd.org - tt-rss.git/commitdiff
feedlist_init_cat: assume cat_id is integer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:42:55 +0000 (16:42 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:42:55 +0000 (16:42 +0300)
functions.php

index 5fe775971389d786737f23d560f0197d6533a8a6..e2e98455800e3a39968e6f83887385370b0ea4e1 100644 (file)
 
        function feedlist_init_cat($link, $cat_id, $hidden = false) {
                $obj = array();
+               $cat_id = (int) $cat_id;
 
                if ($cat_id > 0) {
                        $cat_unread = ccache_find($link, $cat_id, $_SESSION["uid"], true);