aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/acl_selectors.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/view/acl_selectors.php b/view/acl_selectors.php
index 44446701c..9bbd6bcb4 100644
--- a/view/acl_selectors.php
+++ b/view/acl_selectors.php
@@ -48,7 +48,6 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p
else
$o .= "<select name=\"{$selname}[]\" id=\"$selclass\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" >\r\n";
-
$r = q("SELECT `id`, `name`, `url`, `network` FROM `contact`
WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0
$sql_extra
@@ -62,9 +61,9 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p
$selected = " selected=\"selected\" ";
else
$selected = '';
-// if($rr['network'] === 'stat')
-// $disabled = ' disabled="true" ' ;
-// else
+ if(($privmail) && ($rr['network'] === 'stat'))
+ $disabled = ' disabled="true" ' ;
+ else
$disabled = '';
$o .= "<option value=\"{$rr['id']}\" $selected $disabled title=\"{$rr['url']}\" >{$rr['name']}</option>\r\n";
}