MDL-51078 report_log: use simpler/faster str_split over preg_split

This commit is contained in:
Dan Poltawski 2016-08-09 09:04:31 +01:00
parent 4d31fc8444
commit 4aa5e355e6

View File

@ -380,7 +380,7 @@ class report_log_table_log extends table_sql {
$params['action'] = '%'.$action.'%';
}
} else if (!empty($this->filterparams->action)) {
list($sql, $params) = $DB->get_in_or_equal(preg_split('//', $this->filterparams->action),
list($sql, $params) = $DB->get_in_or_equal(str_split($this->filterparams->action),
SQL_PARAMS_NAMED, 'crud');
$sql = "crud " . $sql;
} else {