aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/functions_rate.inc.php1
-rw-r--r--include/ws_functions.inc.php1
2 files changed, 0 insertions, 2 deletions
diff --git a/include/functions_rate.inc.php b/include/functions_rate.inc.php
index d3027a0e6..da4722420 100644
--- a/include/functions_rate.inc.php
+++ b/include/functions_rate.inc.php
@@ -120,7 +120,6 @@ INSERT
$query = '
SELECT COUNT(rate) AS count
, ROUND(AVG(rate),2) AS average
- , ROUND(STD(rate),2) AS stdev
FROM '.RATE_TABLE.'
WHERE element_id = '.$image_id.'
;';
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 162cd4371..32967fb5d 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -676,7 +676,6 @@ SELECT id, name, permalink, uppercats, global_rank, commentable
$query = '
SELECT COUNT(rate) AS count
, ROUND(AVG(rate),2) AS average
- , ROUND(STD(rate),2) AS stdev
FROM '.RATE_TABLE.'
WHERE element_id = '.$image_row['id'].'
;';