Commit 2448aa61 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1521409: get_record() needs to die"

parents 76f9c9d2 38a9d9a8
......@@ -236,7 +236,8 @@ class View {
SELECT v.*
FROM {view} v JOIN {usr} u ON v.owner = u.id
WHERE v.urlid = ? AND u.urlid = ?',
array($id['urlid'], $id['ownerurlid'])
array($id['urlid'], $id['ownerurlid']),
ERROR_MULTIPLE
);
if (empty($tempdata)) {
throw new ViewNotFoundException(get_string('viewnotfoundbyname', 'error', $id['urlid'], $id['ownerurlid']));
......
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