diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-05-29 18:33:44 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-05-29 18:33:44 +0000 |
commit | 692c1adcc5bd52b8dc501ab2bffadf947d9b452b (patch) | |
tree | 7334578a3f22a9bf3f992304aecd78fb733dd6ec | |
parent | 74ed9436b9d44a08ec836611dee60353d9020614 (diff) | |
download | phpicalendar-692c1adcc5bd52b8dc501ab2bffadf947d9b452b.tar.gz phpicalendar-692c1adcc5bd52b8dc501ab2bffadf947d9b452b.tar.bz2 phpicalendar-692c1adcc5bd52b8dc501ab2bffadf947d9b452b.zip |
more error_reporting
-rw-r--r-- | preferences.php | 11 |
1 files changed, 8 insertions, 3 deletions
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)) { ?> </td> </tr> - <?php if ($HTTP_COOKIE_VARS['phpicalendar']) { ?> + <?php if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { ?> <tr> <td align="left" valign="top" nowrap><?php echo "$unset_prefs_lang"; ?></td> <td align="left" valign="top"><img src="images/spacer.gif" alt=" " width="20" height="1" border="0"></td> |