Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
json_decode assoc array rather than object. Fixes #12
  • Loading branch information
rosell-dk committed Jun 30, 2019
1 parent 5345c63 commit 703c2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serve.php
Expand Up @@ -112,7 +112,7 @@ public static function serve($options)

if (isset($_POST['options'])) {
// Merge in options in $_POST, overwriting the webp-convert options in config
$convertOptionsInPost = (array) json_decode($_POST['options']);
$convertOptionsInPost = (array) json_decode($_POST['options'], true);
$convertOptions = array_merge($options['webp-convert'], $convertOptionsInPost);
} else {
$convertOptions = $options['webp-convert'];
Expand Down

0 comments on commit 703c2f1

Please sign in to comment.