From: stronk7 Date: Tue, 12 Sep 2006 16:45:46 +0000 (+0000) Subject: Fixed buggy condition. Now defaults are properly calculated by getPHP() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=88bf02130812584e548d38f0c8467c14555a24df;p=moodle.git Fixed buggy condition. Now defaults are properly calculated by getPHP() --- diff --git a/lib/xmldb/classes/XMLDBField.class.php b/lib/xmldb/classes/XMLDBField.class.php index ffa3e1a4d9..abae8cbcf5 100644 --- a/lib/xmldb/classes/XMLDBField.class.php +++ b/lib/xmldb/classes/XMLDBField.class.php @@ -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';