Skip to content

Commit

Permalink
Fix PHP Notice: Array to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
bradt committed Jan 9, 2015
1 parent 224fd98 commit f581032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/amazon-s3-and-cloudfront.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f581032

Please sign in to comment.