Skip to content

Commit f3faa01

Browse files
committed
[spalenque] - #13964 * fix survey question template value 0
1 parent 4f8ae8b commit f3faa01

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gettext/code/GetTextTemplateHelpers.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ private static function convertLocale($locale){
3838
}
3939

4040
public static function _t($domain, $msgid){
41+
4142
$args = [];
4243
if(func_num_args() > 2)
4344
{
4445
$args = func_get_args();
4546
$args = array_slice($args, 2);
4647
}
47-
if(empty($msgid)) return "";
48+
49+
if(!isset($msgid) || $msgid === false) return "";
4850

4951
$msgid = str_replace("\r\n", '', $msgid);
5052
$msgid = str_replace("\n", '', $msgid);

0 commit comments

Comments
 (0)