Skip to content

Commit

Permalink
Fix error when AUTH_KEY not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymotey committed Sep 6, 2024
1 parent 3ec3132 commit 5c63437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug2.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function FilePath($type)
if ($type == 'debug.purge') {
$type = 'purge';
}
$rand = substr(md5(substr(AUTH_KEY, -16)), -16);
$rand = defined('AUTH_KEY') ? substr(md5(substr(AUTH_KEY, -16)), -16) : '';
return $type . $rand . '.log';
}

Expand Down

0 comments on commit 5c63437

Please sign in to comment.