summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-02-12 21:37:56 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-02-12 21:37:56 +0000
commit32989e14dba16192c69cafa6f69138e597311b27 (patch)
treeef73375fa6643b2322a4b3aa933c6f5fe026b899 /includes/common.inc
parentebd95351401cfc23633671210bf89a6b4b3a7c0b (diff)
downloadbrdo-32989e14dba16192c69cafa6f69138e597311b27.tar.gz
brdo-32989e14dba16192c69cafa6f69138e597311b27.tar.bz2
- Fixed blog.module to accept blog/name URLs as well as blog/id
- Changed the RewriteRule in .htaccess. - Fixed form_select() matching incorrectly. - Added missing $Id$ to menu.inc
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 8a9b30994..1ab18b8df 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -742,7 +742,7 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = 0) {
function form_select($title, $name, $value, $options, $description = 0, $extra = 0, $multiple = 0) {
if (count($options) > 0) {
foreach ($options as $key=>$choice) {
- $select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($key == $value ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>";
+ $select .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($value == $key ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>";
}
return form_item($title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple " : "") . ($extra ? " $extra" : "") .">$select</select>", $description);
}