Skip to content

Commit

Permalink
Fixed: Control user not removed while uninstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed Mar 29, 2019
1 parent 02718a3 commit c76a83a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Handler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ sub uninstall
$dbh->quote_identifier( $::imscpConfig{'DATABASE_NAME'} . '_pma' )
));

if ( defined( my $controlUser = @{ $dbh->selectcol_arrayref(
"SELECT `value` FROM `config` WHERE `name` = 'PMA_CONTROL_USER'" ) }
) ) {
my ( $controlUser ) = @{ $dbh->selectcol_arrayref(
"SELECT `value` FROM `config` WHERE `name` = 'PMA_CONTROL_USER'"
) };

if ( defined $controlUser ) {
$controlUser = decryptRijndaelCBC(
$::imscpDBKey, $::imscpDBiv, $controlUser
);
Expand Down

0 comments on commit c76a83a

Please sign in to comment.