Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-24803 fixed tagid typo in tag correlation table update

  • Loading branch information...
commit ad5644829fc24702ce3956f9887b20c494195871 1 parent 120604f
@skodak skodak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tag/lib.php
View
3  tag/lib.php
@@ -798,10 +798,11 @@ function tag_compute_correlations($min_correlation=2) {
//var_dump($correlated);
//saves correlation info in the caching table
- if ($tag_correlation_obj = get_record('tag_correlation', 'tagid', $tag->id, '', '', '', '', 'tagid')) {
+ if ($tag_correlation_obj = get_record('tag_correlation', 'tagid', $tag->id, '', '', '', '', 'id')) {
$tag_correlation_obj->correlatedtags = $correlated;
update_record('tag_correlation', $tag_correlation_obj);
} else {
+ $tag_correlation_obj = new stdClass();
$tag_correlation_obj->tagid = $tag->id;
$tag_correlation_obj->correlatedtags = $correlated;
insert_record('tag_correlation', $tag_correlation_obj);
Please sign in to comment.
Something went wrong with that request. Please try again.