Skip to content

Commit e9f2b80

Browse files
committed
MAGETWO-96231: All pages in magento are broken on Nginx (MAGE_DIRS errors)
- Added check for array existence
1 parent 6481cec commit e9f2b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pub/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
$params = $_SERVER;
2828
$params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] = array_replace_recursive(
29-
$params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS],
29+
$params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] ?? [],
3030
[
3131
DirectoryList::PUB => [DirectoryList::URL_PATH => ''],
3232
DirectoryList::MEDIA => [DirectoryList::URL_PATH => 'media'],

0 commit comments

Comments
 (0)