Commit 58cbf806 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix fatal error when performing latest upgrade.

parent 099dc5b3
......@@ -1482,6 +1482,7 @@ function xmldb_core_upgrade($oldversion=0) {
if ($oldversion < 2008121500) {
// Make sure the system profile view is marked as a template and is
// allowed to be copied by everyone
execute_sql("UPDATE {view} SET template = 1 WHERE id = (SELECT id FROM {view} WHERE owner = 0 AND type = 'profile')");
$view = new View(get_field('view', 'id', 'owner', 0, 'type', 'profile'));
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