From ab074e200bf649dcd254df454885bead5d731645 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 29 Jun 2015 22:54:26 +0200 Subject: [PATCH] Mail link in profile page --- include/acl_selectors.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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;