MDL-15345: prevent problem while running tag_compute_correlations under pgsql.

This commit is contained in:
scyrma
2008-06-23 04:30:04 +00:00
parent 76fa355d68
commit 1938e7f893
+2 -2
View File
@@ -32,7 +32,7 @@
* @licence http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package moodlecore
* @subpackage tag
* @see http://www.php.net/manual/en/function.urlencode.php
* @see http://www.php.net/manual/en/function.rawurlencode.php
*/
define('TAG_RETURN_ARRAY', 0);
@@ -766,7 +766,7 @@ function tag_compute_correlations($min_correlation=2) {
"WHERE ta.tagid = {$tag->id} AND tb.tagid != {$tag->id} ".
"GROUP BY tb.tagid ".
"HAVING nr > $min_correlation ".
"ORDER BY nr DESC";
"ORDER BY COUNT(*) DESC";
$correlated = array();