]> git.mjollnir.org Git - moodle.git/commitdiff
...where = should be == ...
authorstronk7 <stronk7>
Wed, 30 Aug 2006 16:06:16 +0000 (16:06 +0000)
committerstronk7 <stronk7>
Wed, 30 Aug 2006 16:06:16 +0000 (16:06 +0000)
lib/xmldb/classes/generators/mysql/mysql.class.php

index 7cb7320806794ce9d18b066fca8a5c227e77df1f..3ac850bdf5bff93a75a14987045d491ca377eac6 100644 (file)
@@ -120,9 +120,9 @@ class XMLDBmysql extends XMLDBGenerator {
                 if (empty($xmldb_length)) {
                     $xmldb_length = 'small';
                 }
-                if ($xmldb_length = 'small') {
+                if ($xmldb_length == 'small') {
                     $dbtype = 'TEXT';
-                } else if ($xmldb_length = 'medium') {
+                } else if ($xmldb_length == 'medium') {
                     $dbtype = 'MEDIUMTEXT';
                 } else {
                     $dbtype = 'BIGTEXT';
@@ -132,9 +132,9 @@ class XMLDBmysql extends XMLDBGenerator {
                 if (empty($xmldb_length)) {
                     $xmldb_length = 'small';
                 }
-                if ($xmldb_length = 'small') {
+                if ($xmldb_length == 'small') {
                     $dbtype = 'BLOB';
-                } else if ($xmldb_length = 'medium') {
+                } else if ($xmldb_length == 'medium') {
                     $dbtype = 'MEDIUMBLOB';
                 } else {
                     $dbtype = 'BIGBLOB';