Now save the connection value selected and remove when not needed

This commit is contained in:
laf
2015-06-27 17:41:31 +01:00
parent aed0fedf02
commit 4bef35c90a
3 changed files with 7 additions and 3 deletions

View File

@ -23,8 +23,6 @@ $desc = mres($_POST['desc']);
if( is_array($pattern) ) {
$pattern = implode(" ", $pattern);
$pattern = rtrim($pattern,'&&');
$pattern = rtrim($pattern,'||');
} elseif( !empty($_POST['pattern']) && !empty($_POST['condition']) && !empty($_POST['value']) ) {
$pattern = '%'.$_POST['pattern'].' '.$_POST['condition'].' ';
if( is_numeric($_POST['value']) ) {