Skip to content

Commit 568ae13

Browse files
authored
Merge pull request #224 from DigitalTimK/bugfix/bbb_constructor
Bugfix check in BBB-constructor
2 parents 16eea90 + 431046b commit 568ae13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BigBlueButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class BigBlueButton
7878
public function __construct(?string $baseUrl = null, ?string $secret = null, ?array $opts = [])
7979
{
8080
// Provide an early error message if configuration is wrong
81-
if (is_null($secret) && false === getenv('BBB_SERVER_BASE_URL')) {
81+
if (is_null($baseUrl) && false === getenv('BBB_SERVER_BASE_URL')) {
8282
throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor ' .
8383
"(1st argument) or by environment variable 'BBB_SERVER_BASE_URL'!");
8484
}

0 commit comments

Comments
 (0)