diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-26 19:01:16 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-26 19:01:16 -0700 |
commit | eb5e6aae7273fef06a06f983fe78aaad737aa729 (patch) | |
tree | 355b1518f1553c970d3cbad7b8e923a66b64dc9c /view/acl_selectors.php | |
parent | d453560be9142067391fc0213d5fd5066667e54f (diff) | |
download | volse-hubzilla-eb5e6aae7273fef06a06f983fe78aaad737aa729.tar.gz volse-hubzilla-eb5e6aae7273fef06a06f983fe78aaad737aa729.tar.bz2 volse-hubzilla-eb5e6aae7273fef06a06f983fe78aaad737aa729.zip |
a few more fsw tweaks
Diffstat (limited to 'view/acl_selectors.php')
-rw-r--r-- | view/acl_selectors.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/view/acl_selectors.php b/view/acl_selectors.php index b5f2dcfea..32a3fff22 100644 --- a/view/acl_selectors.php +++ b/view/acl_selectors.php @@ -49,11 +49,11 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p $o .= "<select name=\"{$selname}[]\" id=\"$selclass\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" >\r\n"; - $r = q("SELECT `id`, `name`, `url` FROM `contact` - WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `network` = 'dfrn' + $r = q("SELECT `id`, `name`, `url`, `network` FROM `contact` + WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 $sql_extra ORDER BY `name` ASC ", - $_SESSION['uid'] + intval(local_user()) ); if(count($r)) { @@ -62,7 +62,11 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p $selected = " selected=\"selected\" "; else $selected = ''; - $o .= "<option value=\"{$rr['id']}\" $selected title=\"{$rr['url']}\" >{$rr['name']}</option>\r\n"; + if($rr['network'] === 'stat') + $disabled = ' disabled="true" ' ; + else + $disabled = ''; + $o .= "<option value=\"{$rr['id']}\" $selected $disabled title=\"{$rr['url']}\" >{$rr['name']}</option>\r\n"; } } |