Ensure we return booleans.
authorCMDR furrycat <elite@furrycat.net>
Fri, 5 Feb 2016 10:40:46 +0000 (05:40 -0500)
committerCMDR furrycat <elite@furrycat.net>
Fri, 5 Feb 2016 10:40:46 +0000 (05:40 -0500)
propel/build/classes/buckyball/Entry.php
propel/build/classes/buckyball/Race.php

index 5f65ec4..57c5bc7 100644 (file)
@@ -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() {
index 80ffa05..52f1977 100644 (file)
@@ -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() {