Skip to content

Commit 959b4e4

Browse files
michalsndatamweb
andauthored
Update system/Boot.php
Co-authored-by: Pooya Parsa <[email protected]>
1 parent 88a1512 commit 959b4e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

system/Boot.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,12 @@ protected static function definePathConstants(Paths $paths): void
196196

197197
// The path to the writable directory.
198198
if (! defined('WRITEPATH')) {
199-
if (($writePath = realpath(rtrim($paths->writableDirectory, '\\/ '))) === false) {
199+
200+
$writePath = realpath(rtrim($paths->writableDirectory, '\\/ '));
201+
202+
if ($writePath === false) {
200203
header('HTTP/1.1 503 Service Unavailable.', true, 503);
201204
echo 'The WRITEPATH is not set correctly.';
202-
203205
// EXIT_ERROR is not yet defined
204206
exit(1);
205207
}

0 commit comments

Comments
 (0)