From: skodak Date: Mon, 16 Jun 2008 21:08:40 +0000 (+0000) Subject: MDL-14789 meta_type now used instead of type X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=11d075757e72221a1c9cf63abc8aaca06e6cdf9d;p=moodle.git MDL-14789 meta_type now used instead of type --- diff --git a/mod/hotpot/restorelib.php b/mod/hotpot/restorelib.php index 7156b29928..8406c90cdb 100644 --- a/mod/hotpot/restorelib.php +++ b/mod/hotpot/restorelib.php @@ -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 = '';