From: Michael Vogel Date: Mon, 29 Jun 2015 20:54:26 +0000 (+0200) Subject: Mail link in profile page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab074e200bf649dcd254df454885bead5d731645;p=friendica.git Mail link in profile page --- diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 8b03a1312c..f628b97309 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -190,8 +190,14 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p $tabindex = ($tabindex > 0 ? "tabindex=\"$tabindex\"" : ""); + if ($privmail AND $preselected) { + $sql_extra .= " AND `id` IN (".implode(",", $preselected).")"; + $hidepreselected = ' style="display: none;"'; + } else + $hidepreselected = ""; + if($privmail) - $o .= "\r\n"; else $o .= "\r\n"; + if ($privmail AND $preselected) + $o .= implode(", ", $receiverlist); + call_hooks($a->module . '_post_' . $selname, $o); return $o;