From c0f4842dfa394a1f242e6359eeb7d02b26ebc214 Mon Sep 17 00:00:00 2001 From: Julia Longtin Date: Fri, 8 Feb 2013 16:06:16 +0000 Subject: [PATCH] Documentation corrections, and disable just the display of the ACL ID in cases of $return_all. --- gacl/gacl.class.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gacl/gacl.class.php b/gacl/gacl.class.php index bd6e3a432..b4f301710 100644 --- a/gacl/gacl.class.php +++ b/gacl/gacl.class.php @@ -318,8 +318,8 @@ class gacl { * * @param string The ACO section value * @param string The ACO value - * @param string The ARO section value (optional) - * @param string The ARO value (optional) + * @param string The ARO section value + * @param string The ARO value * @param string The AXO section value (optional) * @param string The AXO value (optional) * @param string The value of the ARO group (optional) @@ -548,8 +548,13 @@ class gacl { $this->put_cache($retarr, $cache_id); } - if (!$return_all) { - $this->debug_text("acl_query(): ACO Section: $aco_section_value ACO Value: $aco_value ARO Section: $aro_section_value ARO Value $aro_value ACL ID: ". $retarr['acl_id'] .' Result: '. $retarr['allow']); + if ($return_all) + { + $this->debug_text("acl_query(): ACO Section: $aco_section_value ACO Value: $aco_value ARO Section: $aro_section_value ARO Value $aro_value ACL ID: OMITTED due to return_all"); + } + else + { + $this->debug_text("acl_query(): ACO Section: $aco_section_value ACO Value: $aco_value ARO Section: $aro_section_value ARO Value $aro_value ACL ID: ". $retarr['acl_id'] .' Result: '. $retarr['allow']); } return $retarr; -- 2.11.4.GIT