From: CMDR furrycat Date: Fri, 5 Feb 2016 10:40:46 +0000 (-0500) Subject: Ensure we return booleans. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=aa51b5c99ec65337ed5fd511c64703f19b83402e;p=furrycat%2Frace-o-matic.git Ensure we return booleans. --- diff --git a/propel/build/classes/buckyball/Entry.php b/propel/build/classes/buckyball/Entry.php index 5f65ec4..57c5bc7 100644 --- a/propel/build/classes/buckyball/Entry.php +++ b/propel/build/classes/buckyball/Entry.php @@ -117,7 +117,7 @@ class Entry extends BaseEntry } function hasEndorsement($e) { - return $this->getEndorsements() & $this->EndorsementValue($e); + return (bool) ($this->getEndorsements() & $this->EndorsementValue($e)); } function cutShort() { diff --git a/propel/build/classes/buckyball/Race.php b/propel/build/classes/buckyball/Race.php index 80ffa05..52f1977 100644 --- a/propel/build/classes/buckyball/Race.php +++ b/propel/build/classes/buckyball/Race.php @@ -49,7 +49,7 @@ class Race extends BaseRace } function hasPrize($p) { - return $this->getPrizes() & $this->PrizeValue($p); + return (bool) ($this->getPrizes() & $this->PrizeValue($p)); } function hasWinner() {