MDL-67038 analytics: Remove null strings from the DB
This commit is contained in:
@@ -493,13 +493,15 @@ class model {
|
||||
$predictionsprocessor = $this->model->predictionsprocessor;
|
||||
}
|
||||
|
||||
if ($contextids !== false) {
|
||||
if ($contextids === false) {
|
||||
$contextsstr = $this->model->contextids;
|
||||
} else if (!$contextids) {
|
||||
$contextsstr = null;
|
||||
} else {
|
||||
$contextsstr = json_encode($contextids);
|
||||
|
||||
// Reset the internal cache.
|
||||
$this->contexts = null;
|
||||
} else {
|
||||
$contextsstr = $this->model->contextids;
|
||||
}
|
||||
|
||||
if ($this->model->timesplitting !== $timesplittingid ||
|
||||
|
||||
Reference in New Issue
Block a user