Skip to content

Commit 425373b

Browse files
committed
env fix
1 parent 8ba9398 commit 425373b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: httpstat.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public function __construct($key)
2020

2121
public function get($default = null)
2222
{
23-
if (!isset($_ENV[$this->key]) || strlen($_ENV[$this->key]) == 0) {
23+
if (strlen(getenv($this->key)) === 0) {
2424
return $default;
2525
}
2626

27-
return $_ENV[$this->key];
27+
return getenv($this->key);
2828
}
2929
}
3030

0 commit comments

Comments
 (0)