diff --git a/core/lib/Drupal/Component/PhpStorage/FileStorage.php b/core/lib/Drupal/Component/PhpStorage/FileStorage.php index 8918da26cf..d9c06f00ea 100644 --- a/core/lib/Drupal/Component/PhpStorage/FileStorage.php +++ b/core/lib/Drupal/Component/PhpStorage/FileStorage.php @@ -168,9 +168,11 @@ protected function createDirectory($directory, $mode = 0777) { } return TRUE; } + else { + // Something failed and the directory doesn't exist. + trigger_error('mkdir(): Permission Denied', E_USER_WARNING); + } } - // Something failed and the directory doesn't exist. - trigger_error('mkdir(): Permission Denied', E_USER_WARNING); return FALSE; }