diff --git a/inc/attendancelog.php b/inc/attendancelog.php index 6c82f95..d39cc0a 100644 --- a/inc/attendancelog.php +++ b/inc/attendancelog.php @@ -74,7 +74,7 @@ class attendancelog { $currentTime = $this->currentTime(); $out = array(); foreach ($current_group_classes['raspis'] as $class) { - if ($class['week1'] != $currentTime['week1']) { + if ($class['week1'] == $currentTime['week1']) { $out['info'][$class['day1']]['day_name'] = $class['day_name']; $out['info'][$class['day1']][$class['time1']] = $class; $out['students'] = $this->getStudentsByGroup($current_group[1]['sokr'], $current_group[1]['fo']);