Skip to content

Commit

Permalink
MDL-15345: prevent problem while running tag_compute_correlations und…
Browse files Browse the repository at this point in the history
…er pgsql. (merge from 1.9)
  • Loading branch information
scyrma committed Jun 23, 2008
1 parent 132a0f6 commit eafa83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ function tag_compute_correlations($min_correlation=2) {
WHERE ta.tagid = ? AND tb.tagid <> ?
GROUP BY tb.tagid
HAVING nr > ?
ORDER BY nr DESC";
ORDER BY COUNT(*) DESC";
$params = array($tag->id, $tag->id, $min_correlation);

$correlated = array();
Expand Down

0 comments on commit eafa83e

Please sign in to comment.