Skip to content

Commit

Permalink
Fix Undefined index: REQUEST_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
vseager authored Aug 3, 2022
1 parent 8d148f5 commit 83827bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/Framework/App/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function aroundGetValue(AppConfig $subject, callable $proceed,
return $proceed($path, $scope, $scopeCode);
}

if ($scope != ScopeInterface::SCOPE_STORE || $scopeCode == Store::ADMIN_CODE || stristr($_SERVER['REQUEST_URI'], 'media_gallery_listing')) {
if ($scope != ScopeInterface::SCOPE_STORE || $scopeCode == Store::ADMIN_CODE || (isset($_SERVER['REQUEST_URI']) && stristr($_SERVER['REQUEST_URI'], 'media_gallery_listing'))) {
try {
if ($this->state->getAreaCode() == Area::AREA_ADMINHTML) {
return null;
Expand Down

0 comments on commit 83827bf

Please sign in to comment.