diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-02-09 15:35:38 +0000 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-09 17:40:01 -0500 |
commit | 0d586524874560c51277b90f33bcbed164748f6d (patch) | |
tree | ba34b850009621e8f59dce8068453980904da570 | |
parent | 3e005f2d1bf01c295c132b6ca52e1139ef60b733 (diff) |
trac #1160 fix dropdown xmloutput function for the selected attribute and fix newmessage auto-selected dropdown.
-rw-r--r-- | actions/newmessage.php | 2 | ||||
-rw-r--r-- | lib/htmloutputter.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/newmessage.php b/actions/newmessage.php index f83015a37..82276ff34 100644 --- a/actions/newmessage.php +++ b/actions/newmessage.php @@ -201,7 +201,7 @@ class NewmessageAction extends Action function showNoticeForm() { - $message_form = new MessageForm($this, $this->to, $this->content); + $message_form = new MessageForm($this, $this->other, $this->content); $message_form->show(); } } diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 7780b1c19..e2319b1fd 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -255,7 +255,7 @@ class HTMLOutputter extends XMLOutputter foreach ($content as $value => $option) { if ($value == $selected) { $this->element('option', array('value' => $value, - 'selected' => $value), + 'selected' => 'selected'), $option); } else { $this->element('option', array('value' => $value), $option); |