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

Round two of the lang setting fix

parent 354a5122
......@@ -266,7 +266,7 @@ function xmldb_core_upgrade($oldversion=0) {
// everything up to here was pre mysql support.
if ($oldversion < 2007062000) {
if (!get_record_array('config', 'field', 'lang')) {
if (!get_record('config', 'field', 'lang')) {
execute_sql("INSERT INTO {$prefix}config (field, value) VALUES ('lang', (SELECT value FROM {$prefix}config WHERE field = 'language'))");
delete_records('config', 'field', 'language');
Supports Markdown
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