From: Robin Millette Date: Mon, 9 Feb 2009 15:35:38 +0000 (+0000) Subject: trac #1160 fix dropdown xmloutput function for the selected attribute and fix newmess... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d586524874560c51277b90f33bcbed164748f6d;p=quix0rs-gnu-social.git trac #1160 fix dropdown xmloutput function for the selected attribute and fix newmessage auto-selected dropdown. --- diff --git a/actions/newmessage.php b/actions/newmessage.php index f83015a372..82276ff341 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 7780b1c19d..e2319b1fdc 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);