From d2de02d911e192f786bc1b316298da38fb593fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Lind=C3=A9n?= Date: Tue, 2 Jun 2015 23:16:46 +0200 Subject: Not setting $resultCheck[false] in core/Filechecks.php function checkDirectoriesWritable. --- core/Filechecks.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core/Filechecks.php') diff --git a/core/Filechecks.php b/core/Filechecks.php index d673ccc250..579d9ca980 100644 --- a/core/Filechecks.php +++ b/core/Filechecks.php @@ -48,11 +48,8 @@ class Filechecks Filesystem::mkdir($directoryToCheck); $directory = Filesystem::realpath($directoryToCheck); - $resultCheck[$directory] = false; - if ($directory !== false // realpath() returns FALSE on failure - && is_writable($directoryToCheck) - ) { - $resultCheck[$directory] = true; + if ($directory !== false) { + $resultCheck[$directory] = is_writable($directoryToCheck); } } return $resultCheck; -- cgit v1.2.3