mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-14789 meta_type now used instead of type
This commit is contained in:
parent
ab130a0b5f
commit
11d075757e
@ -370,7 +370,7 @@ function hotpot_restore_record(&$restore, $status, &$xml, $table, $foreign_keys,
|
||||
if (isset($column->default_value)) {
|
||||
$default = $column->default_value;
|
||||
} else {
|
||||
if (preg_match('/int|decimal|double|float|time|year/i', $column->type)) {
|
||||
if (preg_match('/[INTD]/', $column->meta_type)) {
|
||||
$default = 0;
|
||||
} else {
|
||||
$default = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user