]> git.mjollnir.org Git - moodle.git/commitdiff
One typo (!==) was preventing defaults to be properly calculated for integers.
authorstronk7 <stronk7>
Sat, 21 Oct 2006 16:36:16 +0000 (16:36 +0000)
committerstronk7 <stronk7>
Sat, 21 Oct 2006 16:36:16 +0000 (16:36 +0000)
Thanks to Nigel McNie for being on that!

Merged from MOODLE_17_STABLE

lib/xmldb/classes/generators/XMLDBGenerator.class.php

index 26d3fe24318b1b8cd88964ce53f04d17f6da2364..8d4eca2f7c556ab79059235815a695bd4efc1871 100644 (file)
@@ -439,7 +439,7 @@ class XMLDBgenerator {
 
         $default = null;
 
-        if ($xmldb_field->getDefault() != NULL) {
+        if ($xmldb_field->getDefault() !== NULL) {
             if ($xmldb_field->getType() == XMLDB_TYPE_CHAR ||
                 $xmldb_field->getType() == XMLDB_TYPE_TEXT) {
                     $default = "'" . addslashes($xmldb_field->getDefault()) . "'";