Skip to content

Commit

Permalink
Constant not ini variable...
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Sep 9, 2014
1 parent 5182614 commit e799ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Wpup/UpdateServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function filterLogInfo($columns) {
protected function outputAsJson($response) {
header('Content-Type: application/json');
$output = '';
if ( defined('JSON_PRETTY_PRINT') && JSON_PRETTY_PRINT ) {
if ( defined('JSON_PRETTY_PRINT') ) {
$output = json_encode($response, JSON_PRETTY_PRINT);
} elseif ( function_exists('wsh_pretty_json') ) {
$output = wsh_pretty_json(json_encode($response));
Expand Down

0 comments on commit e799ef3

Please sign in to comment.