[Bridge] Fix failed to open stream when reading non-existing whitelist
This commit is contained in:
parent
0063d2c376
commit
32d4da8b76
@ -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…
x
Reference in New Issue
Block a user