From 32d4da8b76ae03806288a082a4fac8efeed68624 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 4 Feb 2019 17:35:40 +0100 Subject: [PATCH] [Bridge] Fix failed to open stream when reading non-existing whitelist --- lib/Bridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index c9561c8f..9e5750a7 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -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));