feedlist_init_cat: assume cat_id is integer

master
Andrew Dolgov 14 years ago
parent 9004415453
commit db34e084e7

@ -6963,6 +6963,7 @@
function feedlist_init_cat($link, $cat_id, $hidden = false) { function feedlist_init_cat($link, $cat_id, $hidden = false) {
$obj = array(); $obj = array();
$cat_id = (int) $cat_id;
if ($cat_id > 0) { if ($cat_id > 0) {
$cat_unread = ccache_find($link, $cat_id, $_SESSION["uid"], true); $cat_unread = ccache_find($link, $cat_id, $_SESSION["uid"], true);

Loading…
Cancel
Save