MDL-52141 backup: Ensure we don't alter the log record when parsing it.

This commit is contained in:
Russell Smith
2015-12-03 11:53:09 +01:00
committed by Eloy Lafuente (stronk7)
parent e2de9c6b6d
commit 6e8ca8a6ce
@@ -97,7 +97,10 @@ class restore_log_rule implements processable {
return $this->module . '-' . $this->action;
}
public function process($log) {
public function process($inputlog) {
// There might be multiple rules that process this log, we can't alter it in the process of checking it.
$log = clone($inputlog);
// Reset the allpairs array
$this->allpairs = array();