aboutsummaryrefslogtreecommitdiffstats
path: root/include/picture_rate.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/picture_rate.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/picture_rate.inc.php b/include/picture_rate.inc.php
index c6fe12e24..ccf3afe55 100644
--- a/include/picture_rate.inc.php
+++ b/include/picture_rate.inc.php
@@ -33,7 +33,6 @@ if ($conf['rate'])
$query = '
SELECT COUNT(rate) AS count
, ROUND(AVG(rate),2) AS average
- , ROUND(STD(rate),2) AS std
FROM '.RATE_TABLE.'
WHERE element_id = '.$picture['current']['id'].'
;';
@@ -41,7 +40,7 @@ SELECT COUNT(rate) AS count
}
else
{ // avg rate null -> no rate -> no need to query db
- $row = array( 'count'=>0, 'average'=>NULL, 'std'=>NULL );
+ $row = array( 'count'=>0, 'average'=>NULL );
}
$template->assign('rate_summary', $row);