Skip to content

Commit

Permalink
Fix uninstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
firstred committed Oct 26, 2017
1 parent 1f2cace commit 324ff24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions advancedeucompliance.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,8 @@ public function dropConfig()
public function uninstallTables()
{
$state = true;
$sql = require dirname(__FILE__).'/install/sql_install.php';
foreach ($sql as $name => $v) {
$state &= Db::getInstance()->execute('DROP TABLE IF EXISTS '.$name);
foreach ([AeucCMSRoleEmailEntity::$definition['table'], AeucEmailEntity::$definition['table']] as $name) {
$state &= Db::getInstance()->execute('DROP TABLE IF EXISTS `'._DB_PREFIX_.bqSQL($name).'`');
}

return $state;
Expand Down

0 comments on commit 324ff24

Please sign in to comment.