summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>";
}