aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_rate.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions_rate.inc.php b/include/functions_rate.inc.php
index 2644caad9..ae896c29a 100644
--- a/include/functions_rate.inc.php
+++ b/include/functions_rate.inc.php
@@ -136,6 +136,11 @@ INSERT
*/
function update_rating_score($element_id = false)
{
+ if ( ($alt_result = trigger_event('update_rating_score', false, $element_id)) !== false)
+ {
+ return $alt_result;
+ }
+
$query = '
SELECT element_id,
COUNT(rate) AS rcount,