[evolvis-commits] r18688: ensure voting information are integers

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Oct 4 17:59:39 CEST 2012


Author: mirabilos
Date: 2012-10-04 17:59:39 +0200 (Thu, 04 Oct 2012)
New Revision: 18688

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php
Log:
ensure voting information are integers

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php	2012-10-04 13:45:28 UTC (rev 18687)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php	2012-10-04 15:59:39 UTC (rev 18688)
@@ -1831,7 +1831,7 @@
 		if ($numvotes < 0 || $numvoters < $numvotes) {
 			$this->votes = array(-1, -1, 0);
 		} else {
-			$this->votes = array($numvotes, $numvoters,
+			$this->votes = array((int)$numvotes, (int)$numvoters,
 			    (int)($numvotes * 100 / $numvoters + 0.5));
 		}
 		return $this->votes;



More information about the evolvis-commits mailing list