Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 72fafcb

Browse files
committed
revert: Use empty() for environment variable checks in example
1 parent fc04a65 commit 72fafcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/albert/chat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
require_once dirname(__DIR__).'/../vendor/autoload.php';
1212

13-
if (!isset($_ENV['ALBERT_API_KEY'])) {
13+
if (empty($_ENV['ALBERT_API_KEY'])) {
1414
echo 'Please set the ALBERT_API_KEY environment variable.'.\PHP_EOL;
1515
exit(1);
1616
}
1717

18-
if (!isset($_ENV['ALBERT_API_URL'])) {
18+
if (empty($_ENV['ALBERT_API_URL'])) {
1919
echo 'Please set the ALBERT_API_URL environment variable (e.g., https://your-albert-instance.com).'.\PHP_EOL;
2020
exit(1);
2121
}

0 commit comments

Comments
 (0)