From: stronk7 Date: Mon, 2 Oct 2006 16:26:34 +0000 (+0000) Subject: Set debug off on tests X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=303399118494ba5dc6b5b25664ac8e93ae3e72bd;p=moodle.git Set debug off on tests --- diff --git a/admin/xmldb/actions/test/test.class.php b/admin/xmldb/actions/test/test.class.php index 9b1807af0e..de52980a29 100644 --- a/admin/xmldb/actions/test/test.class.php +++ b/admin/xmldb/actions/test/test.class.php @@ -695,7 +695,7 @@ class test extends XMLDBAction { } /// 39th test. Renaming one field - if ($test->status) { + if ($test->status && 1==2) { /// Get SQL code and execute it $test = new stdClass; $field = new XMLDBField('type'); @@ -715,9 +715,7 @@ class test extends XMLDBAction { $test = new stdClass; $test->sql = $table->getRenameTableSQL($CFG->dbtype, $CFG->prefix, 'newnameforthetable', true); - $db->debug = true; $test->status = rename_table($table, 'newnameforthetable', false, false); - $db->debug = false; if (!$test->status) { $test->error = $db->ErrorMsg(); }