From 92f99c97f41cd090743b4ba4e6048bf6b948115b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 29 Jan 2011 17:22:55 +0100 Subject: [PATCH] [ticket/9949] $user->lang() uses last int-value to get the key not first The comment in the code says: "We now get the first number passed and will select the key based upon this number". But the loop over the arguments is not left and therefore it uses the last int-value not the first one. PHPBB3-9949 --- phpBB/includes/session.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 5f5b39fe27..1dc854caf2 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -1966,6 +1966,7 @@ class user extends session $key_found = $num; } + break; } }