We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f80a9f1 commit ea37a9eCopy full SHA for ea37a9e
resources/lib/UnityHTTPD.php
@@ -99,8 +99,11 @@ public static function errorLog(
99
$output["REMOTE_USER"] = $_SERVER["REMOTE_USER"] ?? null;
100
$output["REMOTE_ADDR"] = $_SERVER["REMOTE_ADDR"] ?? null;
101
$output["_REQUEST"] = $_REQUEST;
102
- if (!is_null($errorid) || !is_null($error)) {
103
- $output["errorid"] = self::errorID($error);
+ if (is_null($errorid) && !is_null($error)) {
+ $errorid = self::errorID($error);
104
+ }
105
+ if (!is_null($errorid)) {
106
+ $output["errorid"] = $errorid;
107
}
108
error_log("$title: " . \jsonEncode($output));
109
0 commit comments