From f58103264dc096482c76050dde84075ac6f18418 Mon Sep 17 00:00:00 2001 From: Brad Touesnard Date: Fri, 9 Jan 2015 17:03:56 -0400 Subject: [PATCH] Fix PHP Notice: Array to string conversion --- classes/amazon-s3-and-cloudfront.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/amazon-s3-and-cloudfront.php b/classes/amazon-s3-and-cloudfront.php index 8b673a19..28b40786 100644 --- a/classes/amazon-s3-and-cloudfront.php +++ b/classes/amazon-s3-and-cloudfront.php @@ -54,7 +54,7 @@ function get_setting( $key, $default = '' ) { if ( isset( $_POST['action'] ) && 'as3cf-get-url-preview' == sanitize_key( $_POST['action'] ) ) { // input var okay $value = 0; if ( isset( $_POST[ $key ] ) ) { // input var okay - $value = sanitize_text_field( $_POST[ $key ] ); // input var okay + $value = $_POST[ $key ]; // input var okay if ( is_array( $value ) ) { // checkbox is checked $value = 1;