From 8e09ae50b04bd85b6824710b2abf4288f28c973b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Monlla=C3=B3?= Date: Tue, 23 Jul 2019 09:52:55 +0200 Subject: [PATCH] MDL-66210 analytics: Update references to ->options --- analytics/classes/local/analysis/result_file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analytics/classes/local/analysis/result_file.php b/analytics/classes/local/analysis/result_file.php index 7a6b61e47ac..16ef9f198b2 100644 --- a/analytics/classes/local/analysis/result_file.php +++ b/analytics/classes/local/analysis/result_file.php @@ -78,9 +78,9 @@ class result_file extends result { // if this analyser was analysed less that 1 week ago we skip generating a new one. This // helps scale the evaluation process as sites with tons of courses may need a lot of time to // complete an evaluation. - if (!empty($options['evaluation']) && !empty($options['reuseprevanalysed'])) { + if (!empty($this->options['evaluation']) && !empty($this->options['reuseprevanalysed'])) { - $previousanalysis = \core_analytics\dataset_manager::get_evaluation_analysable_file($this->analyser->get_modelid(), + $previousanalysis = \core_analytics\dataset_manager::get_evaluation_analysable_file($this->modelid, $analysable->get_id(), $timesplitting->get_id()); // 1 week is a partly random time interval, no need to worry about DST. $boundary = time() - WEEKSECS;