Browse Source

Here as well

tags/3.6
Michael 1 year ago
parent
commit
ab73dbf346
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      include/datetime.php

+ 1
- 4
include/datetime.php View File

@@ -280,10 +280,7 @@ function timesel($format, $h, $m, $id = 'timepicker') {
280 280
 function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) {
281 281
 
282 282
 	// First day of the week (0 = Sunday)
283
-	$firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week');
284
-	if ($firstDay === false) {
285
-		$firstDay=0;
286
-	}
283
+	$firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week', 0);
287 284
 
288 285
 	$lang = substr(get_browser_language(), 0, 2);
289 286
 

Loading…
Cancel
Save