Permalink
Browse files

MDL-38197 tool_generator: fix use of raw LIKE sql

  • Loading branch information...
danpoltawski committed Aug 20, 2013
1 parent 1dae651 commit faa2e68bb5c2bfd26e9d9d9dcf6b8907b25422c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/tool/generator/classes/backend.php
@@ -266,7 +266,7 @@ private function create_users() {
// the required number.
$this->log('checkaccounts', $count);
$nextnumber = 1;
$rs = $DB->get_recordset_select('user', 'username LIKE ?',
$rs = $DB->get_recordset_select('user', $DB->sql_like('username', '?'),
array('tool_generator_%'), 'username', 'id, username');
foreach ($rs as $rec) {
// Extract number from username.

0 comments on commit faa2e68

Please sign in to comment.