diff --git a/app/Model/Correlation.php b/app/Model/Correlation.php index 42c1da648..223b2b410 100644 --- a/app/Model/Correlation.php +++ b/app/Model/Correlation.php @@ -369,7 +369,7 @@ class Correlation extends AppModel } foreach ($correlatingAttributes as $b) { // On a full correlation, only correlate with attributes that have a higher ID to avoid duplicate correlations - if ($full && $b['Attribute']['id'] < $b['Attribute']['id']) { + if ($full && $a['Attribute']['id'] < $b['Attribute']['id']) { continue; } if (isset($b['Attribute']['value1'])) {