Permalink
Browse files

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

  • Loading branch information...
danpoltawski committed Aug 9, 2016
1 parent 78d5550 commit 1556a6461a715b1433749b8b932a3af0c3abac95
Showing with 1 addition and 1 deletion.
  1. +1 −1 report/log/classes/table_log.php
@@ -380,7 +380,7 @@ public function get_action_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 {

0 comments on commit 1556a64

Please sign in to comment.