aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-31 14:34:21 +0000
committerplegall <plg@piwigo.org>2010-03-31 14:34:21 +0000
commit9f0034807aad2b0e09f11c3579aa9458cfb142c7 (patch)
treec5d896a68b13fece6a405a9f3a41e028abdcbb9f /include
parent66144706f1468fdcfe0c8ad7e5d99ead7aa69fac (diff)
feature 1559: remove "standard deviation" in rating.
git-svn-id: http://piwigo.org/svn/trunk@5500 68402e56-0260-453c-a942-63ccdbb3a9ee
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);