mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:37:02 +02:00
added an option to suppress email address in the search results pane for regular users
This commit is contained in:
@ -484,6 +484,7 @@ class ModelSearchSearch extends Model {
|
||||
$tag = array();
|
||||
$note = array();
|
||||
$q = '';
|
||||
global $SUPPRESS_RECIPIENTS;
|
||||
|
||||
if(count($ids) == 0) return $messages;
|
||||
|
||||
@ -498,7 +499,7 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
if(isset($query->rows)) {
|
||||
foreach($query->rows as $r) {
|
||||
if(!isset($rcpt[$r['id']])) {
|
||||
if(!isset($rcpt[$r['id']]) && !in_array($r['to'], $SUPPRESS_RECIPIENTS)) {
|
||||
$srcpt[$r['id']] = $r['to'];
|
||||
$rcpt[$r['id']] = $r['to'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user