Commit b184d581 authored by mabolek's avatar mabolek

[CLEANUP] CI-related fixes

parent 3b14b574
Pipeline #6185 passed with stages
in 2 minutes and 18 seconds
......@@ -215,11 +215,11 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
*/
public function triggerKarmaIssuerActionForUser($issuerCode, $issuerActionCode, ExtbaseFrontendUser $frontendUser)
{
if (!key_exists($issuerCode, $this->settings['issuers'])) {
if (!array_key_exists($issuerCode, $this->settings['issuers'])) {
throw new \Exception('Issuer code "' . $issuerCode . '" does not exist.', 1549968187);
}
if (!key_exists($issuerActionCode, $this->settings['issuers'][$issuerCode])) {
if (!array_key_exists($issuerActionCode, $this->settings['issuers'][$issuerCode])) {
throw new \Exception('Issuer action code "' . $issuerActionCode . '" does not exist.', 1549968249);
}
......@@ -230,7 +230,7 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
throw new \Exception('Empty karma source code supplied. Please configure it in TypoScript.', 1541508560);
}
if (!key_exists($karmaSourceCode, $this->settings['sourceCodes'])) {
if (!array_key_exists($karmaSourceCode, $this->settings['sourceCodes'])) {
throw new \Exception('Karma source code "' . $karmaSourceCode . '" does not exist.', 1549968362);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment