Skip to content

Commit

Permalink
Fix for #1229
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 24, 2019
1 parent 46b4bce commit e8f4d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SimpleSAML/Locale/Translate.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static function translateSingularGettext($original)
{
$text = BaseTranslator::$current->gettext($original);

if (func_num_args() === 1) {
if (func_num_args() === 1 || $original === null) {
return $text;
}

Expand Down

0 comments on commit e8f4d2b

Please sign in to comment.