Skip to content

Commit

Permalink
Fix multiplier codes not working
Browse files Browse the repository at this point in the history
  • Loading branch information
velocity23 committed Apr 20, 2022
1 parent a46f261 commit b0409b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/data/Pirep.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static function findMultiplier($code, $rankid)
return $ret->first();
}

$sql = "SELECT m.* FROM multipliers m WHERE m.code=? AND (m.minrankid=null OR (SELECT timereq FROM ranks WHERE id=?) >= (SELECT timereq FROM ranks WHERE id=m.minrankid)) LIMIT 1";
$sql = "SELECT m.* FROM multipliers m WHERE m.code=? AND (m.minrankid IS NULL OR (SELECT timereq FROM ranks WHERE id=?) >= (SELECT timereq FROM ranks WHERE id=m.minrankid)) LIMIT 1";
$ret = self::$_db->query($sql, [$code, $rankid]);

if ($ret->count() == 0) {
Expand Down

0 comments on commit b0409b6

Please sign in to comment.