]> git.mxchange.org Git - friendica.git/commitdiff
Here as well
authorMichael <heluecht@pirati.ca>
Tue, 7 Nov 2017 21:48:41 +0000 (21:48 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 7 Nov 2017 21:48:41 +0000 (21:48 +0000)
include/datetime.php

index f525f1234d4b8094cf029aa1e488126c402185c7..faedaf33dc4c068f5f85b77f490cc3b97c02c2be 100644 (file)
@@ -280,10 +280,7 @@ function timesel($format, $h, $m, $id = 'timepicker') {
 function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) {
 
        // First day of the week (0 = Sunday)
-       $firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week');
-       if ($firstDay === false) {
-               $firstDay=0;
-       }
+       $firstDay = PConfig::get(local_user(), 'system', 'first_day_of_week', 0);
 
        $lang = substr(get_browser_language(), 0, 2);