1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/10345] Return the language key when the key has an empty array

PHPBB3-10345
This commit is contained in:
Joas Schilling
2011-11-30 21:23:00 +01:00
parent dd99675f72
commit 65e6ab5530
2 changed files with 10 additions and 0 deletions

View File

@@ -1862,6 +1862,11 @@ class user extends session
$args[0] = $lang;
return call_user_func_array('sprintf', $args);
}
else if (sizeof($lang) == 0)
{
// If the language entry is an empty array, we just return the language key
return $args[0];
}
// It is an array... now handle different nullar/singular/plural forms
$key_found = false;