diff options
author | Andrew Dolgov <[email protected]> | 2012-08-16 13:36:02 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-16 13:36:02 +0400 |
commit | 7e18f8e710d3b5af211be0a658d863a00d10bd67 (patch) | |
tree | fb9fba4184230c1d0fe5b8c387e66d27824f1437 | |
parent | fc9de939857feb3dc0b46e674464bc7e68a72130 (diff) |
print_feed_cat_select: fix Uncategorized not recognized as default_id
-rw-r--r-- | include/functions.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 0bb761f5d..1700a2e87 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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>"; } |