Project

General

Profile

« Previous | Next » 

Revision 1849

Added by Dietmar almost 12 years ago

  1. typofix page_extended in admin/settings and admin/pages/
    ! Fill empty option modules dropdown in admin/pages/sections.php

View differences:

save.php
212 212
$settings = array();
213 213
$old_settings = array();
214 214
// Query current settings in the db, then loop through them to get old values
215
$sql = 'SELECT `name`, `value` FROM `'.TABLE_PREFIX.'settings`';
215
$sql  = 'SELECT `name`, `value` FROM `'.TABLE_PREFIX.'settings`';
216 216
$sql .= 'ORDER BY `name`';
217 217

  
218 218
if($res_settings = $database->query($sql)) {
......
225 225
		$value = isset($_POST[$setting_name]) ? $value : $old_settings[$setting_name] ;
226 226
		switch ($setting_name) {
227 227
			case 'default_timezone':
228
				$value=$value*60*60;
228
		    	$value = (is_numeric($value) ? $value : 0);
229
		    	$value = ( ($value >= -12 && $value <= 13) ? $value :0 ) * 3600;
229 230
				$passed = true;
230 231
				break;
231 232
			case 'string_dir_mode':

Also available in: Unified diff