mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 05:40:24 +02:00
[Bridge] Fix failed to open stream when reading non-existing whitelist
This commit is contained in:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user