From: Andrew Dolgov Date: Thu, 16 Aug 2012 09:36:02 +0000 (+0400) Subject: print_feed_cat_select: fix Uncategorized not recognized as default_id X-Git-Tag: 1.6.0~143 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7e18f8e710d3b5af211be0a658d863a00d10bd67;p=tt-rss.git print_feed_cat_select: fix Uncategorized not recognized as default_id --- diff --git a/include/functions.php b/include/functions.php index 0bb761f5..1700a2e8 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2043,7 +2043,14 @@ if (db_num_rows($result) > 0) { print ""; } - print ""; + + if ($default_id == 0) { + $is_selected = "selected=\"1\""; + } else { + $is_selected = ""; + } + + print ""; } print ""; }