From 5e5fb356c762b47b29ae28e81b8ad938a52f94cd Mon Sep 17 00:00:00 2001 From: Wruczek Date: Sat, 19 Jan 2019 15:25:25 +0100 Subject: [PATCH] Fixed a directory creation bug When the cache directory for servericons was not found, the ServerIconCache tried to create one. Due to a bug, the created directory had no permissions and was inaccessible --- src/private/php/ServerIconCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/private/php/ServerIconCache.php b/src/private/php/ServerIconCache.php index 3f84327..141bf7d 100644 --- a/src/private/php/ServerIconCache.php +++ b/src/private/php/ServerIconCache.php @@ -23,7 +23,7 @@ class ServerIconCache { } public static function syncIcons() { - if (!file_exists(self::$iconsCacheDir) && !mkdir(self::$iconsCacheDir, true)) { + if (!file_exists(self::$iconsCacheDir) && !mkdir(self::$iconsCacheDir)) { throw new \Exception("Cannot create icons cache directory at " . self::$iconsCacheDir); }