Project

General

Profile

« Previous | Next » 

Revision 1893

Added by Dietmar over 11 years ago

  1. little issue on handing the cache in TranslationTable
  2. fix missing block or block0 issue in /admin/pages/section.php

View differences:

sections_save.php
102 102
	$section_id  = $section['section_id'];
103 103
	$sid = 'wb'.$section_id;
104 104
	$dst = date('I') ? ' UTC' : ''; // daylight saving time? date('P')
105
	$iBlock      = $admin->get_post_escaped('block'.$section_id);
106
// be sure it's numeric, can failed if block is disabled
107
	$iBlock      = (is_numeric($iBlock) ? $iBlock : $section['block']);
108
//workout set block to default if you add a section
109
	$iBlock      = ( ( $iBlock!==0 ) ? $iBlock : '1');
105
	$iBlock      = intval($admin->get_post('block'.$section_id));
106
	$iBlock      = ($iBlock==0) ? $section['block'] : $iBlock;
107

  
110 108
	$sStartDate  = $admin->get_post_escaped('start_date'.$section_id);
111 109
	$sStartDate  = ($sStartDate==null)||($sStartDate=='') ? 0 : jscalendar_to_timestamp($sStartDate)-TIMEZONE;
112 110
	$sEndDate    = $admin->get_post_escaped('end_date'.$section_id);

Also available in: Unified diff