Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #20 from KnpLabs/fix/undefined-property-sf23
Browse files Browse the repository at this point in the history
Fixing undefined property for sf 2.3.
  • Loading branch information
Albin Kerouanton authored and Albin Kerouanton committed Jul 2, 2015
2 parents bff95ae + f10d7b3 commit 94b88d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct($data, $alias, $route)

// Add pretty printing to the default encoding options supplied by
// symfony's JsonResponse
if (defined('JSON_PRETTY_PRINT')) {
if (isset($this->encodingOptions) && defined('JSON_PRETTY_PRINT')) {
$this->encodingOptions = $this->encodingOptions | JSON_PRETTY_PRINT;
}

Expand Down

0 comments on commit 94b88d3

Please sign in to comment.