[evolvis-commits] r18714: fix another php warning (ratings not deleted)

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Oct 8 14:43:16 CEST 2012


Author: mirabilos
Date: 2012-10-08 14:43:16 +0200 (Mon, 08 Oct 2012)
New Revision: 18714

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/include/User.class.php
Log:
fix another php warning (ratings not deleted)

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/User.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/User.class.php	2012-10-08 12:43:13 UTC (rev 18713)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/User.class.php	2012-10-08 12:43:16 UTC (rev 18714)
@@ -603,7 +603,7 @@
 			// as it opens possibility to abuse rate system)
 			if (!$use_ratings && $this->usesRatings()) {
 				db_query_params ('DELETE FROM user_ratings WHERE rated_by=$1',
-						 array($user_id));
+						 array($this->getID()));
 			}
 			if (!$this->fetchData($this->getID())) {
 				db_rollback();



More information about the evolvis-commits mailing list