Commit 5d4e6f75 authored by Robert Lyon's avatar Robert Lyon

Bug 1634297: Use table prefix for sql calls

In rest/locallib.php and lib/mahara.php

behatnotneeded

Change-Id: I5120656913d39b69d2f8c9492b485a12e7c58f90
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 51be11cb
......@@ -2078,7 +2078,7 @@ abstract class Plugin implements IPlugin {
$cname = $def['connection'];
if ($results = get_records_sql_assoc(
'SELECT cci.*
FROM client_connections_institution AS cci
FROM {client_connections_institution} AS cci
WHERE cci.class = ? AND
cci.connection = ? AND
cci.institution IN ('.join(',', array_map('db_quote', $institutions)).') AND enable = 1', array($me, $cname))
......
......@@ -83,7 +83,7 @@ class webservice_rest_server extends webservice_base_server {
}
}
execute_sql("delete from oauth_server_nonce");
delete_records('oauth_server_nonce');
// if we should have one - setup the OAuth server handler
$oauth_token = null;
......
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