mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
- 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
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user