From: stronk7 Date: Wed, 30 Aug 2006 16:06:16 +0000 (+0000) Subject: ...where = should be == ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=914597ee9f992a7c96290666347eb34830cbcb81;p=moodle.git ...where = should be == ... --- diff --git a/lib/xmldb/classes/generators/mysql/mysql.class.php b/lib/xmldb/classes/generators/mysql/mysql.class.php index 7cb7320806..3ac850bdf5 100644 --- a/lib/xmldb/classes/generators/mysql/mysql.class.php +++ b/lib/xmldb/classes/generators/mysql/mysql.class.php @@ -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';