MDL-51078 report_log: use simpler/faster str_split over preg_split
authorDan Poltawski <dan@moodle.com>
Tue, 9 Aug 2016 08:04:31 +0000 (09:04 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 9 Aug 2016 08:04:31 +0000 (09:04 +0100)
report/log/classes/table_log.php

index 280162f..c1f3ff9 100644 (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 {