diff --git a/helpers/cmb_Meta_Box_types.php b/helpers/cmb_Meta_Box_types.php index 01e960f..d409334 100644 --- a/helpers/cmb_Meta_Box_types.php +++ b/helpers/cmb_Meta_Box_types.php @@ -412,8 +412,8 @@ public function concat_options( $args = array(), $method = 'list_input' ) { foreach ( $options as $option_key => $option ) { // Check for the "old" way - $opt_label = isset( $option['name'] ) ? $option['name'] : $option; - $opt_value = isset( $option['value'] ) ? $option['value'] : $option_key; + $opt_label = is_array( $option ) && array_key_exists( 'name', $option ) ? $option['name'] : $option; + $opt_value = is_array( $option ) && array_key_exists( 'value', $option ) ? $option['value'] : $option_key; $selected = $value == $opt_value; if ( ! empty( $args ) ) {