feat: bot config visual editor, chat admin, debug logging, HMAC toggle

This commit is contained in:
Lizandro Guarnizo
2026-06-13 11:24:32 -05:00
parent 774cd829d9
commit dd57cba0e2
4 changed files with 24 additions and 2 deletions
+5 -1
View File
@@ -34,5 +34,9 @@ declare(strict_types=1);
function env(string $key, $default = null)
{
return $_ENV[$key] ?? getenv($key) ?: $default;
$v = $_ENV[$key] ?? getenv($key);
if ($v === false || $v === null || $v === '') {
return $default;
}
return $v;
}