diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-19 05:46:01 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-19 05:46:01 +0000 |
commit | c63a9ea119bb87aaef19fe9f982a2a4600abe853 (patch) | |
tree | 184ced0d59a4139bf3077306f82565c610c1355a /functions/init.inc.php | |
parent | 08fb4c67dd7c7e616638d09ac2a2deab57d31185 (diff) | |
download | phpicalendar-c63a9ea119bb87aaef19fe9f982a2a4600abe853.tar.gz phpicalendar-c63a9ea119bb87aaef19fe9f982a2a4600abe853.tar.bz2 phpicalendar-c63a9ea119bb87aaef19fe9f982a2a4600abe853.zip |
More vtodo support, displays now.
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 84e737c..e3c42bd 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -12,13 +12,13 @@ if (!defined('BASE')) define('BASE', './'); include(BASE.'config.inc.php'); include(BASE.'functions/error.php'); if ($HTTP_COOKIE_VARS['phpicalendar']) { - $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); - $language = $phpicalendar['cookie_language']; - $default_cal = $phpicalendar['cookie_calendar']; - $default_view = $phpicalendar['cookie_view']; - $style_sheet = $phpicalendar['cookie_style']; - $week_start_day = $phpicalendar['cookie_startday']; - $day_start = $phpicalendar['cookie_time']; + $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); + if (isset($phpicalendar['cookie_language'])) $language = $phpicalendar['cookie_language']; + if (isset($phpicalendar['cookie_calendar'])) $default_cal = $phpicalendar['cookie_calendar']; + if (isset($phpicalendar['cookie_view'])) $default_view = $phpicalendar['cookie_view']; + if (isset($phpicalendar['cookie_style'])) $style_sheet = $phpicalendar['cookie_style']; + if (isset($phpicalendar['cookie_startday'])) $week_start_day = $phpicalendar['cookie_startday']; + if (isset($phpicalendar['cookie_time'])) $day_start = $phpicalendar['cookie_time']; } // language support |