Small change to save scheduled days always in
0=Sunday....6=Saturday format, independent from the visual display of the week. :-) It uses the "firstdayofweek" string in every languaje pack (defaults to 0-Sunday)
This commit is contained in:
+4
-1
@@ -127,7 +127,10 @@
|
||||
} else {
|
||||
$strchecked = "";
|
||||
}
|
||||
$check_names[] = "<input type=\"checkbox\" name=\"dayofweek_$i\" value=\"1\"$strchecked>";
|
||||
//Calculate standard day of week (0=Sunday......6=Saturday)
|
||||
//to store info in that exact order in DB
|
||||
$stddayofweek = ($i+$firstdayofweek) % 7;
|
||||
$check_names[] = "<input type=\"checkbox\" name=\"dayofweek_$stddayofweek\" value=\"1\"$strchecked>";
|
||||
$i++;
|
||||
}
|
||||
$table->align = array("center","center","center","center","center","center","center");
|
||||
|
||||
Reference in New Issue
Block a user