Skip to content

Commit 3f10a3d

Browse files
prevent warnings from appearing in json output
1 parent 6e6c62a commit 3f10a3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/_server/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
3+
ini_set('display_errors', '0');
34

45
$_isHttps = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
56
|| (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');

0 commit comments

Comments
 (0)