diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-26 15:45:54 +0100 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-26 15:45:54 +0100 |
commit | f3db32d1519dc7c5c7c56e7307e7aad5e0bb2a74 (patch) | |
tree | 4027d5ebec48d4db8f1956e6599c788fa06df084 /lib | |
parent | a80a536e4104bf1b621a86b72d35c7f637d7afd5 (diff) |
Fix direct addressing of messages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/messageform.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/messageform.php b/lib/messageform.php index 61d3d75af..f41508305 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -99,7 +99,6 @@ class MessageForm extends Form return common_local_url('newmessage'); } - /** * Legend of the Form * @@ -110,7 +109,6 @@ class MessageForm extends Form $this->out->element('legend', null, _('Send a direct notice')); } - /** * Data elements * @@ -137,7 +135,7 @@ class MessageForm extends Form $this->out->elementStart('ul', 'form_data'); $this->out->elementStart('li', array('id' => 'notice_to')); $this->out->dropdown('to', _('To'), $mutual, null, false, - $this->to->id); + ($this->to) ? $this->to->id : null); $this->out->elementEnd('li'); $this->out->elementStart('li', array('id' => 'notice_text')); |