Commit 38a9d9a8 authored by Robert Lyon's avatar Robert Lyon

Bug 1521409: get_record() needs to die

When we are trying to fetch a page by urlid and there are duplicates
as the pages will not be the same


Change-Id: I82068aefc99e051a4ecd3aceb5655fc96631b0f5
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 3db4ecaf
......@@ -236,7 +236,8 @@ class View {
FROM {view} v JOIN {usr} u ON v.owner =
WHERE v.urlid = ? AND u.urlid = ?',
array($id['urlid'], $id['ownerurlid'])
array($id['urlid'], $id['ownerurlid']),
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