Skip to content

Commit 9310139

Browse files
author
Stanislav Idolov
authored
ENGCOM-3455: Fix PHP Notice due to #18727 #19185
2 parents 815f013 + 09a316f commit 9310139

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pub/index.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@
2525
}
2626

2727
$params = $_SERVER;
28-
$params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] = array_replace_recursive(
29-
$params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS],
30-
[
28+
$params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] =
29+
($params[Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS] ?? [])
30+
+ [
3131
DirectoryList::PUB => [DirectoryList::URL_PATH => ''],
3232
DirectoryList::MEDIA => [DirectoryList::URL_PATH => 'media'],
3333
DirectoryList::STATIC_VIEW => [DirectoryList::URL_PATH => 'static'],
3434
DirectoryList::UPLOAD => [DirectoryList::URL_PATH => 'media/upload'],
35-
]
36-
);
35+
];
3736
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
3837
/** @var \Magento\Framework\App\Http $app */
3938
$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);

0 commit comments

Comments
 (0)