aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-11 17:03:34 -0800
committerFriendika <info@friendika.com>2010-11-11 17:03:34 -0800
commit16ba93a5b14433f5090255999a1958d4bb2ed611 (patch)
tree1772f6014d4f5339d11475886ec95054b04a0b7f /view
parent4c5f3fbf7983ec64d4564c80578221ed57e2521e (diff)
downloadvolse-hubzilla-16ba93a5b14433f5090255999a1958d4bb2ed611.tar.gz
volse-hubzilla-16ba93a5b14433f5090255999a1958d4bb2ed611.tar.bz2
volse-hubzilla-16ba93a5b14433f5090255999a1958d4bb2ed611.zip
can't send privmail off network
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";
}