]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed buggy condition. Now defaults are properly calculated by getPHP()
authorstronk7 <stronk7>
Tue, 12 Sep 2006 16:45:46 +0000 (16:45 +0000)
committerstronk7 <stronk7>
Tue, 12 Sep 2006 16:45:46 +0000 (16:45 +0000)
lib/xmldb/classes/XMLDBField.class.php

index ffa3e1a4d96bd339b39430930078d70035c0d593..abae8cbcf5d33bea28373c018f4fa81ec0ce3d64 100644 (file)
@@ -800,7 +800,7 @@ class XMLDBField extends XMLDBObject {
         }
     /// Default
         $default =  $this->getDefault();
-        if (!$default !== null & !$this->getSequence()) {
+        if ($default !== null && !$this->getSequence()) {
             $result .= "'" . $default . "'";
         } else {
             $result .= 'null';