Commit 4a75d33a authored by Nigel McNie's avatar Nigel McNie

(#3074) Fix recent upgrade in MySQL.

Turns out my original query was dumb, though perfectly legal SQL. MySQL
couldn't handle the 'dumb' which is kinda surprising but there you go.
parent b0127a75
......@@ -1483,7 +1483,7 @@ function xmldb_core_upgrade($oldversion=0) {
// Make sure the system profile view is marked as a template and is
// allowed to be copied by everyone
require_once('view.php');
execute_sql("UPDATE {view} SET template = 1 WHERE id = (SELECT id FROM {view} WHERE owner = 0 AND type = 'profile')");
execute_sql("UPDATE {view} SET template = 1 WHERE owner = 0 AND type = 'profile'");
$view = new View(get_field('view', 'id', 'owner', 0, 'type', 'profile'));
$view->set_access(array(array(
'type' => 'loggedin'
......
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