From 692c1adcc5bd52b8dc501ab2bffadf947d9b452b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 29 May 2003 18:33:44 +0000 Subject: more error_reporting --- preferences.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'preferences.php') diff --git a/preferences.php b/preferences.php index 2a25baa..b8ffcf5 100644 --- a/preferences.php +++ b/preferences.php @@ -11,7 +11,12 @@ $current_view = "preferences"; $back_page = BASE.$default_view.'.php?cal='.$cal.'&getdate='.$getdate; if ($allow_preferences == 'no') header("Location: $back_page"); -$action = $HTTP_GET_VARS['action']; +if (isset($HTTP_GET_VARS['action'])) { + $action = $HTTP_GET_VARS['action']; +} else { + $action = ''; +} + $startdays = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); if ($action == 'setcookie') { @@ -32,7 +37,7 @@ if ($action == 'setcookie') { $HTTP_COOKIE_VARS['phpicalendar'] = $the_cookie; } -if ($HTTP_COOKIE_VARS['phpicalendar']) { +if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); $cookie_language = $phpicalendar['cookie_language']; $cookie_calendar = $phpicalendar['cookie_calendar']; @@ -293,7 +298,7 @@ if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { ?> - +  -- cgit v1.2.3