diff --git a/web/skins/classic/views/filter.php b/web/skins/classic/views/filter.php index a180fd242..4f0e8c0a9 100644 --- a/web/skins/classic/views/filter.php +++ b/web/skins/classic/views/filter.php @@ -54,7 +54,12 @@ $conjunctionTypes = array( $obracketTypes = array(); $cbracketTypes = array(); -$terms = $filter->terms(); +if (count($filter->terms()) > 0) { + $terms = $filter->terms(); +} else { + $terms[] = array(); +} + if ( count($terms) ) { for ( $i = 0; $i <= count($terms)-2; $i++ ) { $obracketTypes[$i] = str_repeat( '(', $i ); @@ -293,13 +298,6 @@ for ( $i=0; $i < count($terms); $i++ ) { ?> - - -