File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Webapi/Controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010use Magento \Framework \Exception \NoSuchEntityException ;
1111
1212/**
13- * Class PathProcessor to resolve the request path
13+ * Class PathProcessor
1414 */
1515class PathProcessor
1616{
@@ -70,11 +70,11 @@ public function process($pathInfo)
7070 if (isset ($ stores [$ storeCode ])) {
7171 $ this ->storeManager ->setCurrentStore ($ storeCode );
7272 $ this ->localeResolver ->emulate ($ this ->storeManager ->getStore ()->getId ());
73- $ path = '/ ' . ($ pathParts [1 ] ?? '' );
73+ $ path = '/ ' . (isset ( $ pathParts [1 ]) ? $ pathParts [ 1 ] : '' );
7474 } elseif ($ storeCode === self ::ALL_STORE_CODE ) {
7575 $ this ->storeManager ->setCurrentStore (\Magento \Store \Model \Store::ADMIN_CODE );
7676 $ this ->localeResolver ->emulate ($ this ->storeManager ->getStore ()->getId ());
77- $ path = '/ ' . ($ pathParts [1 ] ?? '' );
77+ $ path = '/ ' . (isset ( $ pathParts [1 ]) ? $ pathParts [ 1 ] : '' );
7878 } else {
7979 $ path = '/ ' . implode ('/ ' , $ pathParts );
8080 }
You can’t perform that action at this time.
0 commit comments