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 10
10
use Magento \Framework \Exception \NoSuchEntityException ;
11
11
12
12
/**
13
- * Class PathProcessor to resolve the request path
13
+ * Class PathProcessor
14
14
*/
15
15
class PathProcessor
16
16
{
@@ -70,11 +70,11 @@ public function process($pathInfo)
70
70
if (isset ($ stores [$ storeCode ])) {
71
71
$ this ->storeManager ->setCurrentStore ($ storeCode );
72
72
$ this ->localeResolver ->emulate ($ this ->storeManager ->getStore ()->getId ());
73
- $ path = '/ ' . ($ pathParts [1 ] ?? '' );
73
+ $ path = '/ ' . (isset ( $ pathParts [1 ]) ? $ pathParts [ 1 ] : '' );
74
74
} elseif ($ storeCode === self ::ALL_STORE_CODE ) {
75
75
$ this ->storeManager ->setCurrentStore (\Magento \Store \Model \Store::ADMIN_CODE );
76
76
$ this ->localeResolver ->emulate ($ this ->storeManager ->getStore ()->getId ());
77
- $ path = '/ ' . ($ pathParts [1 ] ?? '' );
77
+ $ path = '/ ' . (isset ( $ pathParts [1 ]) ? $ pathParts [ 1 ] : '' );
78
78
} else {
79
79
$ path = '/ ' . implode ('/ ' , $ pathParts );
80
80
}
You can’t perform that action at this time.
0 commit comments