Skip to content

Commit

Permalink
Correct no-show related query issue which caused multiplier bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
benthemonkey committed Feb 2, 2016
1 parent 788313d commit b7c1c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ajax/PointsCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,9 @@ public function getMultipliers()
ORDER BY first_name, last_name"
);

$noShows = self::fetchAllQuery("SELECT nu_email, COUNT(nu_email) AS count FROM noshows", PDO::FETCH_KEY_PAIR);
$noShows = self::fetchAllQuery("SELECT nu_email, COUNT(nu_email) AS count FROM noshows GROUP BY nu_email", PDO::FETCH_KEY_PAIR);

$absences = self::fetchAllQuery("SELECT nu_email, COUNT(nu_email) AS count from absences GROUP BY nu_email", PDO::FETCH_KEY_PAIR);
$absences = self::fetchAllQuery("SELECT nu_email, COUNT(nu_email) AS count FROM absences GROUP BY nu_email", PDO::FETCH_KEY_PAIR);

$count = count($slivkans);
$is_housing = self::$config['is_housing'] == 'true';
Expand Down

0 comments on commit b7c1c7e

Please sign in to comment.