mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16505] Fix use of count() on non-Countable
PHPBB3-16505
This commit is contained in:
parent
e65c0171e4
commit
e19dac0658
1 changed files with 2 additions and 1 deletions
|
@ -292,9 +292,10 @@ class language
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public function lang_array($key, $args = array())
|
||||
public function lang_array($key, $args = [])
|
||||
{
|
||||
$lang = $this->lang_raw($key);
|
||||
$args = (array) $args;
|
||||
|
||||
if ($lang === $key)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue