aboutsummaryrefslogtreecommitdiffstats
path: root/include/acl_selectors.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/acl_selectors.php')
-rw-r--r--include/acl_selectors.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 6ce4c3f9b..8d94264e4 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -211,7 +211,7 @@ function fixacl(&$item) {
$item = str_replace(array('<','>'),array('',''),$item);
}
-function populate_acl($defaults = null,$unused = false) {
+function populate_acl($defaults = null,$show_jotnets = true) {
$allow_cid = $allow_gid = $deny_cid = $deny_gid = false;
@@ -231,7 +231,9 @@ function populate_acl($defaults = null,$unused = false) {
}
$jotnets = '';
- call_hooks('jot_networks', $jotnets);
+ if($show_jotnets) {
+ call_hooks('jot_networks', $jotnets);
+ }
$tpl = get_markup_template("acl_selector.tpl");
$o = replace_macros($tpl, array(