diff --git a/web/zm_funcs.php b/web/zm_funcs.php index 46a00b30a..d330e333d 100644 --- a/web/zm_funcs.php +++ b/web/zm_funcs.php @@ -912,10 +912,8 @@ function parseFilter( $save_to_session=false ) case 'TotScore': case 'AvgScore': case 'MaxScore': - $filter_sql .= "E.".$$attr_name; - break; case 'Archived': - $filter_sql .= "E.Archived = ".$$value_name; + $filter_sql .= "E.".$$attr_name; break; case 'DiskPercent': $filter_sql .= getDiskPercent(); diff --git a/web/zm_html_view_filter.php b/web/zm_html_view_filter.php index 4ff2d782a..8fd46017f 100644 --- a/web/zm_html_view_filter.php +++ b/web/zm_html_view_filter.php @@ -53,8 +53,8 @@ $conjunction_types = array( 'and' => $zmSlangConjAnd, 'or' => $zmSlangConjOr ); -$obracket_types = array( '' => '' ); -$cbracket_types = array( '' => '' ); +$obracket_types = array( '0' => '' ); +$cbracket_types = array( '0' => '' ); for ( $i = 1; $i <= ceil(($trms-1)/2); $i++ ) { $obracket_types[$i] = str_repeat( "(", $i ); @@ -127,7 +127,7 @@ if ( !$sort_field )