summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-16 13:36:02 +0400
committerAndrew Dolgov <[email protected]>2012-08-16 13:36:02 +0400
commit7e18f8e710d3b5af211be0a658d863a00d10bd67 (patch)
treefb9fba4184230c1d0fe5b8c387e66d27824f1437 /include
parentfc9de939857feb3dc0b46e674464bc7e68a72130 (diff)
print_feed_cat_select: fix Uncategorized not recognized as default_id
Diffstat (limited to 'include')
-rw-r--r--include/functions.php9
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>";
}