1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 06:55:56 +00:00

print_feed_cat_select: fix Uncategorized not recognized as default_id

This commit is contained in:
Andrew Dolgov
2012-08-16 13:36:02 +04:00
parent fc9de93985
commit 7e18f8e710

View File

@@ -2043,7 +2043,14 @@
if (db_num_rows($result) > 0) {
print "<option disabled=\"1\">--------</option>";
}
print "<option value=\"0\">".__('Uncategorized')."</option>";
if ($default_id == 0) {
$is_selected = "selected=\"1\"";
} else {
$is_selected = "";
}
print "<option $is_selected value=\"0\">".__('Uncategorized')."</option>";
}
print "</select>";
}