* include/config_process.php: Fixing warning when no timezone is defined for the user

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
eric_ross_c 2010-03-19 14:04:56 +00:00
parent 594018f2d9
commit 455a548876
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2010-03-19 Eric Ross <eric.ross.c@gmail.com>
* include/config_process.php: Fixing warning when no timezone is defined for the user
2010-03-19 Eric Ross <eric.ross.c@gmail.com>
Adding support to show and purge data from the log4x table

View File

@ -87,10 +87,11 @@ if (isset ($config['id_user'])){
}
// Each user could have it's own timezone)
if ($userinfo["timezone"] != ""){
date_default_timezone_set($userinfo["timezone"]);
if (isset($userinfo["timezone"])) {
if ($userinfo["timezone"] != ""){
date_default_timezone_set($userinfo["timezone"]);
}
}
}
$l10n = NULL;