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
1 changed files with 8 additions and 1 deletions

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>";
}