Skip to content

Commit

Permalink
Idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Feb 8, 2024
1 parent 09f574a commit 438c6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function emit($qreq = null) {
} else if ($this->pretty_print !== null) {
$pprint = $this->pretty_print;
} else {
$pprint = $qreq->user() && $qreq->user()->is_bearer_authorized();
$pprint = $qreq && $qreq->user() && $qreq->user()->is_bearer_authorized();
}
echo json_encode_browser($this->content, $pprint ? JSON_PRETTY_PRINT : 0), "\n";
}
Expand Down

0 comments on commit 438c6e6

Please sign in to comment.