From b5e6995cd75dc3087932accf91d1dfb63f141760 Mon Sep 17 00:00:00 2001 From: eric_ross_c Date: Fri, 19 Mar 2010 14:04:56 +0000 Subject: [PATCH] * 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 --- pandora_console/ChangeLog | 3 +++ pandora_console/include/config_process.php | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e3a36690c4..3b33218e19 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,6 @@ +2010-03-19 Eric Ross + * include/config_process.php: Fixing warning when no timezone is defined for the user + 2010-03-19 Eric Ross Adding support to show and purge data from the log4x table diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 26bd6a028f..f5b30cb777 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -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;