mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-51078 report_log: use simpler/faster str_split over preg_split
This commit is contained in:
parent
4d31fc8444
commit
4aa5e355e6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user