Commit 54aa998b authored by redmatrix's avatar redmatrix

undeclared static property App::$stringsave (push_lang() and pop_lang())

parent 4aa27336
......@@ -711,6 +711,7 @@ class App {
public static $module;
public static $pager;
public static $strings;
public static $stringsave; // used in push_lang() and pop_lang()
public static $hooks;
public static $timezone;
public static $interactive = true;
......
......@@ -109,7 +109,7 @@ function pop_lang() {
if(App::$language === App::$langsave)
return;
if(isset(App::$stringsave))
if(isset(App::$stringsave) && is_array(App::$stringsave))
App::$strings = App::$stringsave;
else
App::$strings = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment