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