diff --git a/ReduxCore/extensions/customizer/extension_customizer.php b/ReduxCore/extensions/customizer/extension_customizer.php old mode 100644 new mode 100755 index efb494db1..23b6ca12d --- a/ReduxCore/extensions/customizer/extension_customizer.php +++ b/ReduxCore/extensions/customizer/extension_customizer.php @@ -107,15 +107,17 @@ public function _override_values( $data ) { if ( isset( $_POST['customized'] ) ) { $this->orig_options = $this->parent->options; $options = json_decode( stripslashes_deep( $_POST['customized'] ), true ); - - foreach ( $options as $key => $value ) { - if ( strpos( $key, $this->parent->args['opt_name'] ) !== false ) { - $key = str_replace( $this->parent->args['opt_name'] . '[', '', rtrim( $key, "]" ) ); - $data[ $key ] = $value; - $GLOBALS[ $this->parent->args['global_variable'] ][ $key ] = $value; - $this->parent->options[ $key ] = $value; - } + if( !empty( $options ) && is_array( $options ) ){ + foreach ( $options as $key => $value ) { + if ( strpos( $key, $this->parent->args['opt_name'] ) !== false ) { + $key = str_replace( $this->parent->args['opt_name'] . '[', '', rtrim( $key, "]" ) ); + $data[ $key ] = $value; + $GLOBALS[ $this->parent->args['global_variable'] ][ $key ] = $value; + $this->parent->options[ $key ] = $value; + } + } } + } return $data;