From a34af69677b6b7b3d1a7c551a0bb5ce5a9441d3c Mon Sep 17 00:00:00 2001 From: nikrou Date: Sat, 8 May 2010 18:43:50 +0000 Subject: 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 --- include/functions_rate.inc.php | 1 - include/ws_functions.inc.php | 1 - 2 files changed, 2 deletions(-) (limited to 'include') 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'].' ;'; -- cgit v1.2.3