Skip to content

Commit

Permalink
small improvement to not show anything when there is no filters
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Dec 31, 2009
1 parent 417ac3a commit 0bf0dbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/filter/views/helpers/filter.php
Expand Up @@ -53,6 +53,12 @@ function form( $model, $fields = array() )
*/
function clear( $filter )
{
if ( !isset( $filter['url'][0] ) || empty( $filter['url'][0] ) || $filter['url'][0] == '/' )
{
$this->messages[] = '$filter is empty';
return false;
}

$out = '<div class="filter">'.
'<div class="wrap">';
$parts = explode( '/', $filter['url'][0] );
Expand Down

0 comments on commit 0bf0dbf

Please sign in to comment.