Skip to content

Commit

Permalink
Check if gebruiker_id isset
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScorpion committed Jan 18, 2024
1 parent 6991579 commit dfd0c9d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Model/CustomConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ public function getConfig()
{
$config = $this->getScopeConfig()->getValue('carriers/parcelpro', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);

$gebruikerid = $config["gebruiker_id"];
if (isset($config["gebruiker_id"])) {
$gebruikerid = $config["gebruiker_id"];
$config = [
'config' => [
'gebruikerID' => $gebruikerid
]
];
}

$config = [
'config' => [
'gebruikerID' => $gebruikerid
]
];
return $config;
}
}

0 comments on commit dfd0c9d

Please sign in to comment.