diff --git a/includes/locations/abstract-acf-location.php b/includes/locations/abstract-acf-location.php index 10b09bc5..8b17de9f 100644 --- a/includes/locations/abstract-acf-location.php +++ b/includes/locations/abstract-acf-location.php @@ -180,6 +180,10 @@ public function match( $rule, $screen, $field_group ) { * @return boolean */ public function compare_to_rule( $value, $rule ) { + if ( !isset($rule['value']) ) { + return false; + } + $result = ( $value == $rule['value'] ); // Allow "all" to match any value.