Commit 248c4d4b authored by mabolek's avatar mabolek Committed by Sebastian Kotte
Browse files

[BUGFIX] Added strict type check to condition

parent a931463d
......@@ -177,7 +177,7 @@ class KarmaService implements \TYPO3\CMS\Core\SingletonInterface
*/
public function getKarmaSourceByCode(string $sourceCode, $defaultLabel='[No Label Set]')
{
if ($sourceCode == '') {
if ($sourceCode === '') {
throw new \Exception('Empty karma source code supplied.', 1541508560);
}
......
Supports Markdown
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