]> git.mxchange.org Git - friendica.git/commitdiff
Use "0" as default
authorMichael <heluecht@pirati.ca>
Mon, 13 Jul 2020 16:24:44 +0000 (16:24 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 13 Jul 2020 16:24:44 +0000 (16:24 +0000)
src/Core/System.php

index 37e6d8a1cbe4da41d70be869c0b82c2fffeb3248..67ee3a80383dd66d40291dabfbd8390f0b9b7d7d 100644 (file)
@@ -140,7 +140,7 @@ class System
         * @param string  $content_type Type of the input (Default: 'application/json').
         * @param integer $options JSON options
         */
-       public static function jsonExit($x, $content_type = 'application/json', int $options = null) {
+       public static function jsonExit($x, $content_type = 'application/json', int $options = 0) {
                header("Content-type: $content_type");
                echo json_encode($x, $options);
                exit();