Skip to content

Commit

Permalink
Merge pull request #216 from deliciousbrains/notice-array-to-string-c…
Browse files Browse the repository at this point in the history
…onversion

Fix PHP Notice: Array to string conversion
  • Loading branch information
bradt committed Jan 9, 2015
2 parents 224fd98 + f581032 commit 93451af
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 93451af

Please sign in to comment.