Commit cbd79ae1 authored by Nigel McNie's avatar Nigel McNie
Browse files

Check for both the mysql and mysql5 db types when doing a mysql hack. Will be...

Check for both the mysql and mysql5 db types when doing a mysql hack. Will be mysql5 only later, of course.
parent e1dbc960
......@@ -551,7 +551,8 @@ function core_install_lastcoredata_defaults() {
$user->authinstance = $auth_instance->id;
$newid = insert_record('usr', $user, 'id', true);
if ($newid > 0 && get_config('dbtype') == 'mysql') { // gratuitous mysql workaround
$dbtype = get_config('dbtype');
if ($newid > 0 && ($dbtype == 'mysql' || $dbtype == 'mysql5')) { // gratuitous mysql workaround
set_field('usr', 'id', 0, 'id', $newid);
}
......
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