From edcf4c06f33ddea1cc69bafe761fb9c0902b76a7 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 18 Jan 2017 20:40:47 +0800 Subject: [PATCH] Fix conditional field with 'contains' --- core/um-short-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/um-short-functions.php b/core/um-short-functions.php index f1ff638b..129f285b 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -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;