From 11d075757e72221a1c9cf63abc8aaca06e6cdf9d Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 16 Jun 2008 21:08:40 +0000 Subject: [PATCH] MDL-14789 meta_type now used instead of type --- mod/hotpot/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/restorelib.php b/mod/hotpot/restorelib.php index 7156b299283..8406c90cdb6 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 = '';