print_feed_cat_select: fix Uncategorized not recognized as default_id

master
Andrew Dolgov 12 years ago
parent fc9de93985
commit 7e18f8e710

@ -2043,7 +2043,14 @@
if (db_num_rows($result) > 0) { if (db_num_rows($result) > 0) {
print "<option disabled=\"1\">--------</option>"; 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>"; print "</select>";
} }

Loading…
Cancel
Save