mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +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
|
// Create initial whitelist or load from disk
|
||||||
if (!file_exists(WHITELIST) && !empty(self::$whitelist)) {
|
if (!file_exists(WHITELIST) && !empty(self::$whitelist)) {
|
||||||
file_put_contents(WHITELIST, implode("\n", self::$whitelist));
|
file_put_contents(WHITELIST, implode("\n", self::$whitelist));
|
||||||
} else {
|
} elseif(file_exists(WHITELIST)) {
|
||||||
|
|
||||||
$contents = trim(file_get_contents(WHITELIST));
|
$contents = trim(file_get_contents(WHITELIST));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user