aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-19 17:40:17 -0700
committerfriendica <info@friendica.com>2013-09-19 17:40:17 -0700
commitef88ba11ba97f5eb09fb917a6495037256aaa5ec (patch)
tree37db0befd45dca105ae1523a9903568142a0cced
parenta5656c350dd2a1329ef8ddb4e6eea82e341920c3 (diff)
downloadvolse-hubzilla-ef88ba11ba97f5eb09fb917a6495037256aaa5ec.tar.gz
volse-hubzilla-ef88ba11ba97f5eb09fb917a6495037256aaa5ec.tar.bz2
volse-hubzilla-ef88ba11ba97f5eb09fb917a6495037256aaa5ec.zip
prefill private mail recip from $_REQUEST['to'] if it's there.
-rw-r--r--mod/message.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/message.php b/mod/message.php
index f5a60b73b..652481579 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -273,6 +273,11 @@ function message_content(&$a) {
$prefill = (($preselect) ? $prename : '');
+ if(! $prefill) {
+ if(array_key_exists('to',$_REQUEST))
+ $prefill = $_REQUEST['to'];
+ }
+
// the ugly select box
$select = contact_select('messageto','message-to-select', $preselect, 4, true, false, false, 10);