[Bridge] Fix failed to open stream when reading non-existing whitelist
This commit is contained in:
parent
0063d2c376
commit
32d4da8b76
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ class Bridge {
|
|||
// Create initial whitelist or load from disk
|
||||
if (!file_exists(WHITELIST) && !empty(self::$whitelist)) {
|
||||
file_put_contents(WHITELIST, implode("\n", self::$whitelist));
|
||||
} else {
|
||||
} elseif(file_exists(WHITELIST)) {
|
||||
|
||||
$contents = trim(file_get_contents(WHITELIST));
|
||||
|
||||
|
|
Loading…
Reference in a new issue