@@ 73-75 (lines=3) @@ | ||
70 | $query = " and ( " . substr($query, 0, -4) . " )"; |
|
71 | } |
|
72 | $maxDepth = (int)$options['maxDepth']; |
|
73 | if ($maxDepth>0) { |
|
74 | $query .= " and object.path !~ '" . $top . str_repeat( '%/', $maxDepth + 1 ) . "'"; |
|
75 | } |
|
76 | if ( $options['filter'] ) { |
|
77 | $query .= ' and ( '.$options['filter'].' )'; |
|
78 | } |
|
@@ 97-99 (lines=3) @@ | ||
94 | $query .= " and object.path != '".$top."'"; |
|
95 | } |
|
96 | $maxDepth = (int)$options['maxDepth']; |
|
97 | if ($maxDepth>0) { |
|
98 | $query .= " and object.path !~ '" . $top . str_repeat( '%/', $maxDepth + 1 ) . "'"; |
|
99 | } |
|
100 | if ( $options['filter'] ) { |
|
101 | $query .= ' and ( '.$options['filter'].' )'; |
|
102 | } |