]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14789 meta_type now used instead of type
authorskodak <skodak>
Mon, 16 Jun 2008 21:08:40 +0000 (21:08 +0000)
committerskodak <skodak>
Mon, 16 Jun 2008 21:08:40 +0000 (21:08 +0000)
mod/hotpot/restorelib.php

index 7156b2992834c8601d57d537ed2c602a4ecb9024..8406c90cdb6219049e71bb257f5ecf89c69128b4 100644 (file)
@@ -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 = '';