From 8005f79d55a8c0a4f0c99d8afe19cb6d56372c50 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Fri, 21 Apr 2017 19:40:06 +0800 Subject: [PATCH] Remove notices --- core/um-fields.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/um-fields.php b/core/um-fields.php index 7292697c..626b32da 100644 --- a/core/um-fields.php +++ b/core/um-fields.php @@ -1987,9 +1987,8 @@ class UM_Fields { $output .= ''; $arr_selected = array(); - // add options - if( ! empty( $options ) ){ + if( ! empty( $options ) && is_array( $options ) ){ foreach( $options as $k => $v ) { $v = rtrim( $v );