|
|
|
@ -217,11 +217,11 @@ function admin_shifts()
|
|
|
|
|
$change_index = 0;
|
|
|
|
|
// Ersten/nächsten passenden Schichtwechsel suchen
|
|
|
|
|
foreach ($change_hours as $i => $change_time) {
|
|
|
|
|
if(!preg_match('/\d{2}:\d{2}/',$change_time)) {
|
|
|
|
|
$change_time = $change_time.":00";
|
|
|
|
|
if (!preg_match('/\d{2}:\d{2}/', $change_time)) {
|
|
|
|
|
$change_time = $change_time . ":00";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$change_time = explode(':',$change_time);
|
|
|
|
|
$change_time = explode(':', $change_time);
|
|
|
|
|
$change_hour = $change_time[0];
|
|
|
|
|
$change_minute = $change_time[1];
|
|
|
|
|
|
|
|
|
@ -240,12 +240,12 @@ function admin_shifts()
|
|
|
|
|
do {
|
|
|
|
|
$day = parse_date('Y-m-d H:i', date('Y-m-d', $shift_start) . ' 00:00');
|
|
|
|
|
|
|
|
|
|
$change_time=$change_hours[$change_index];
|
|
|
|
|
if(!preg_match('/\d{2}:\d{2}/',$change_time)) {
|
|
|
|
|
$change_time = $change_time.":00";
|
|
|
|
|
$change_time = $change_hours[$change_index];
|
|
|
|
|
if (!preg_match('/\d{2}:\d{2}/', $change_time)) {
|
|
|
|
|
$change_time = $change_time . ":00";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$change_time = explode(':',$change_time);
|
|
|
|
|
$change_time = explode(':', $change_time);
|
|
|
|
|
$change_hour = $change_time[0];
|
|
|
|
|
$change_minute = $change_time[1];
|
|
|
|
|
|
|
|
|
|