Skip to content
Snippets Groups Projects
Commit b43d204d authored by Jared Hancock's avatar Jared Hancock
Browse files

filter: Fix saving of ban rules

parent 8693cf61
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ $page=($_GET['p'] && is_numeric($_GET['p']))?$_GET['p']:1;
$query="$sql ORDER BY $order_by";
$res=db_query($query);
if($res && ($num=db_num_rows($res)))
$showing=sprintf(_N('Showing %d help topic', 'Showing %d help topics'), $num);
$showing=sprintf(_N('Showing %d help topic', 'Showing %d help topics', $num), $num);
else
$showing=__('No help topics found!');
......
......@@ -36,9 +36,9 @@ if($_POST && !$errors && $filter){
}elseif(!$_POST['val'] || !Validator::is_email($_POST['val'])){
$errors['err']=$errors['val']=__('Valid email address required');
}elseif(!$errors){
$vars=array('w'=>'email',
'h'=>'equal',
'v'=>trim($_POST['val']),
$vars=array('what'=>'email',
'how'=>'equal',
'val'=>trim($_POST['val']),
'filter_id'=>$filter->getId(),
'isactive'=>$_POST['isactive'],
'notes'=>$_POST['notes']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment