Fix conditional field with 'contains'

This commit is contained in:
Champ Camba
2017-01-18 20:40:47 +08:00
parent 4c4d97b178
commit edcf4c06f3
+2 -2
View File
@@ -354,7 +354,7 @@
}
break;
case 'contains':
if ( !strstr( $field, $val ) ){
if ( strstr( $field, $val ) ){
$state = 1;
}else{
$state = 0;
@@ -435,7 +435,7 @@
}
break;
case 'contains':
if ( !strstr( $field, $val ) ){
if ( strstr( $field, $val ) ){
$state = 0;
}else{
$state = 1;