Index: branches/Ver3.0/xpressme_integration_kit/include/onuninstall.php
===================================================================
--- branches/Ver3.0/xpressme_integration_kit/include/onuninstall.php	(revision 750)
+++ branches/Ver3.0/xpressme_integration_kit/include/onuninstall.php	(revision 751)
@@ -36,8 +36,8 @@
 	$prefix_mod = $xoops_prefix  . '_' . $xp_prefix;
 	$sql = "SHOW TABLES LIKE '$prefix_mod%'";
-	if ($result = $db->query($sql)) {
-		while ($table = $db->fetchRow($result)){
+	if ($result = $xoopsDB->query($sql)) {
+		while ($table = $xoopsDB->fetchRow($result)){
 			$drop_sql = 'DROP TABLE '. $table[0] ;
-			if (!$db->queryF($drop_sql)) {
+			if (!$xoopsDB->queryF($drop_sql)) {
 				$ret[] = '<span style="color:#ff0000;">ERROR: Could not drop table <b>'.htmlspecialchars($table[0]).'<b>.</span><br />';
 			} else {
