fix global lng-array

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-18 08:45:20 +01:00
parent f5654d5931
commit dfcb7160cb

View File

@@ -132,7 +132,7 @@ abstract class ApiCommand extends ApiParameter
*/
private function initLang()
{
$lng = array();
global $lng;
// query the whole table
$result_stmt = Database::query("SELECT * FROM `" . TABLE_PANEL_LANGUAGE . "`");