From aa51b5c99ec65337ed5fd511c64703f19b83402e Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Fri, 5 Feb 2016 05:40:46 -0500 Subject: [PATCH] Ensure we return booleans. --- propel/build/classes/buckyball/Entry.php | 2 +- propel/build/classes/buckyball/Race.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.7.4