diff --git a/src/debug2.cls.php b/src/debug2.cls.php index 8e528299e..14bf6bf2f 100644 --- a/src/debug2.cls.php +++ b/src/debug2.cls.php @@ -89,7 +89,8 @@ public static function FilePath($type) if ($type == 'debug.purge') { $type = 'purge'; } - $rand = substr(md5(substr(AUTH_KEY, -16)), -16); + $key = defined('AUTH_KEY') ? AUTH_KEY : md5(__FILE__); + $rand = substr(md5(substr($key, -16)), -16); return $type . $rand . '.log'; }