From 3650ba6f5862c6f518980480cdb8737633433ad4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 30 Sep 2006 15:51:41 +0000 Subject: [PATCH] Using the new table_exists() to initialize tests properly. --- admin/xmldb/actions/test/test.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/xmldb/actions/test/test.class.php b/admin/xmldb/actions/test/test.class.php index d6f97f607a..fbb210aa89 100644 --- a/admin/xmldb/actions/test/test.class.php +++ b/admin/xmldb/actions/test/test.class.php @@ -74,9 +74,13 @@ class test extends XMLDBAction { /// Silenty drop any previous test tables $table = new XMLDBTable('testtable'); - $status = drop_table($table, true, false); + if (table_exists($table)) { + $status = drop_table($table, true, false); + } $table = new XMLDBTable ('anothertest'); - $status = drop_table($table, true, false); + if (table_exists($table)) { + $status = drop_table($table, true, false); + } /// 1st test. Complete table creation. $table = new XMLDBTable('testtable'); -- 2.39.5