aboutsummaryrefslogtreecommitdiffstats
path: root/admin/rating.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-05-08 18:43:50 +0000
committernikrou <nikrou@piwigo.org>2010-05-08 18:43:50 +0000
commita34af69677b6b7b3d1a7c551a0bb5ce5a9441d3c (patch)
tree579e4c7b23c385cfd556edcbcfc221fb7f272415 /admin/rating.php
parentf51c9412bada85609ea5bfd882cdab0d6214c050 (diff)
Amend bug 1559. standard deviation was not removed in some places.
So, sqlite crashed because std function has been removed. git-svn-id: http://piwigo.org/svn/trunk@6125 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/rating.php')
-rw-r--r--admin/rating.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/admin/rating.php b/admin/rating.php
index a4a625c82..dc8b58664 100644
--- a/admin/rating.php
+++ b/admin/rating.php
@@ -169,8 +169,7 @@ SELECT i.id,
i.average_rate,
MAX(r.date) AS recently_rated,
COUNT(r.rate) AS nb_rates,
- SUM(r.rate) AS sum_rates,
- ROUND(STD(r.rate),2) AS std_rates
+ SUM(r.rate) AS sum_rates
FROM '.RATE_TABLE.' AS r
LEFT JOIN '.IMAGES_TABLE.' AS i ON r.element_id = i.id
WHERE 1 = 1 ' . $page['user_filter'] . '
@@ -206,7 +205,6 @@ ORDER BY date DESC;';
'U_THUMB' => $thumbnail_src,
'U_URL' => $image_url,
'AVG_RATE' => $image['average_rate'],
- 'STD_RATE' => $image['std_rates'],
'SUM_RATE' => $image['sum_rates'],
'NB_RATES' => (int)$image['nb_rates'],
'NB_RATES_TOTAL' => (int)$nb_rates,