Commit c382be05 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug 1626329: Wrapping table name in curly brackets"

parents c444d616 58abb86f
......@@ -300,7 +300,7 @@ class PluginAuthSaml extends PluginAuth {
private static function create_certificates($numberofdays = 3650) {
global $CFG;
// Get the details of the first site admin and use it for setting up the certificate
$userid = get_record_sql('SELECT id FROM usr WHERE admin = 1 AND deleted = 0 ORDER BY id LIMIT 1', array());
$userid = get_record_sql('SELECT id FROM {usr} WHERE admin = 1 AND deleted = 0 ORDER BY id LIMIT 1', array());
$id = $userid->id;
$user = new User;
$user->find_by_id($id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment