diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e1d13ad779..b63c356ace 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2008-08-19 Esteban Sanchez + + * include/locale.class.php: Check $ENV["TMPDIR"] existance to avoid + PHP errors. + 2008-08-19 Evi Vanoost * include/locale.class.php: Locale class for number, time and money diff --git a/pandora_console/include/locale.class.php b/pandora_console/include/locale.class.php index 05c88ccf2b..1cb92e2c65 100644 --- a/pandora_console/include/locale.class.php +++ b/pandora_console/include/locale.class.php @@ -640,7 +640,7 @@ class Set_Locale { //Find out the cache location in case none is given if($cacheloc === false) { - if(!empty($_ENV)) { + if(!empty($_ENV["TMPDIR"])) { $cacheloc = $_ENV["TMPDIR"]; } elseif (ini_get('upload_tmp_dir') != "") { $cacheloc = ini_get('upload_tmp_dir');