Skip to content

Commit 80b047f

Browse files
authored
Forgot to use the dummy variables
1 parent 8358eba commit 80b047f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/auth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ function is_tree_branch_empty($tree_id, $parent = 0) {
930930

931931
if (!cacti_sizeof($sites)) {
932932
$total_rows = -1; /* Adding to fix pass by reference error in get_allowed_devices */
933-
if (cacti_sizeof($hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $hosts) . ')', 'description', '', -1)) > 0) {
933+
if (cacti_sizeof($hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $hosts) . ')', 'description', '', $total_rows)) > 0) {
934934
return false;
935935
}
936936
} else {
@@ -946,7 +946,7 @@ function is_tree_branch_empty($tree_id, $parent = 0) {
946946
);
947947
}
948948
$total_rows = -1; /* Adding to fix pass by reference error in get_allowed_devices */
949-
if (cacti_sizeof($site_hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $site_hosts) . ')', 'description', '', -1)) > 0) {
949+
if (cacti_sizeof($site_hosts) && cacti_sizeof(get_allowed_devices('h.id IN(' . implode(',', $site_hosts) . ')', 'description', '', $total_rows)) > 0) {
950950
return false;
951951
}
952952
}

0 commit comments

Comments
 (0)