diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-09-05 01:24:01 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-09-05 01:24:01 +0000 |
commit | b8a5fde84629cdc4885016b76c90d9836c4f65b0 (patch) | |
tree | 0120912c4862214944e2689c49c44c095f112810 /include/functions_calendar.inc.php | |
parent | 116f1bc4fb9c2825a87d7fab9dbfdde78434431a (diff) |
- better management of fatal errors (instead of die or trigger_error rather use fatal_error ...)
git-svn-id: http://piwigo.org/svn/trunk@2502 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_calendar.inc.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/functions_calendar.inc.php b/include/functions_calendar.inc.php index baa72b927..1071b4d8e 100644 --- a/include/functions_calendar.inc.php +++ b/include/functions_calendar.inc.php @@ -115,10 +115,7 @@ WHERE id IN (' . implode(',',$page['items']) .')'; $views = array(CAL_VIEW_LIST,CAL_VIEW_CALENDAR); // Retrieve calendar field - if ( !isset( $fields[ $page['chronology_field'] ] ) ) - { - die('bad chronology field'); - } + isset( $fields[ $page['chronology_field'] ] ) or fatal_error('bad chronology field'); // Retrieve style if ( !isset( $styles[ $page['chronology_style'] ] ) ) @@ -198,7 +195,7 @@ WHERE id IN (' . implode(',',$page['items']) .')'; $page['items'] = array(); $must_show_list = false; } - + $page['comment'] = ''; $template->assign('FILE_CHRONOLOGY_VIEW', 'month_calendar.tpl'); |