diff --git a/homepage/machs/lib/machs/achievementGroup.php b/homepage/machs/lib/machs/achievementGroup.php index e156f52..315ce84 100644 --- a/homepage/machs/lib/machs/achievementGroup.php +++ b/homepage/machs/lib/machs/achievementGroup.php @@ -108,6 +108,8 @@ SQL; $this->unlockingAchievementId = ($unlockingAchievementId == null ? null : (int)$unlockingAchievementId); $this->imageUrl = $imageUrl; $this->canHaveRecords = (bool)$canHaveRecords; +# echo("bool(".$canHaveRecords.")=".$this->canHaveRecords."\n"); +# var_dump($canHaveRecords, $this->canHaveRecords); } /// get the next achievement, the user has to accomplish in that group @@ -160,6 +162,8 @@ SQL; if(!$getAll) $params[':achievementGroupId'] = array('value'=>$this->getId(), 'data_type'=>PDO::PARAM_INT); $result = dbQuery($this->getDbConnection(), $query, $params); +# var_dump($query); +# var_dump($result); return $result; } diff --git a/homepage/participo/attendance.php b/homepage/participo/attendance.php index 5a31526..95b1817 100644 --- a/homepage/participo/attendance.php +++ b/homepage/participo/attendance.php @@ -185,7 +185,7 @@ setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); $htmlTableString .= "
Gesamt zweites Halbjahr:
".$attendanceCountH2."
"; krsort($months); foreach($months as $month=>$days){ - $htmlTableString .= "
".Attendance::$NameOfMonth[$month]."
"; + $htmlTableString .= "
".Attendance::$NameOfMonth[$month-1]."
"; $htmlTableString .= "
".join(", ", $days)."
"; } $htmlTableString .= "";