Skip to content

Commit

Permalink
Forgot to use the dummy variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit authored Feb 22, 2025
1 parent 8358eba commit 80b047f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ function is_tree_branch_empty($tree_id, $parent = 0) {

if (!cacti_sizeof($sites)) {
$total_rows = -1; /* Adding to fix pass by reference error in get_allowed_devices */
if (cacti_sizeof($hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $hosts) . ')', 'description', '', -1)) > 0) {
if (cacti_sizeof($hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $hosts) . ')', 'description', '', $total_rows)) > 0) {
return false;
}
} else {
Expand All @@ -946,7 +946,7 @@ function is_tree_branch_empty($tree_id, $parent = 0) {
);
}
$total_rows = -1; /* Adding to fix pass by reference error in get_allowed_devices */
if (cacti_sizeof($site_hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $site_hosts) . ')', 'description', '', -1)) > 0) {
if (cacti_sizeof($site_hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $site_hosts) . ')', 'description', '', $total_rows)) > 0) {
return false;
}
}
Expand Down

0 comments on commit 80b047f

Please sign in to comment.