Skip to content

Commit c76a83a

Browse files
committed
Fixed: Control user not removed while uninstallation
1 parent 02718a3 commit c76a83a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Handler.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ sub uninstall
145145
$dbh->quote_identifier( $::imscpConfig{'DATABASE_NAME'} . '_pma' )
146146
));
147147

148-
if ( defined( my $controlUser = @{ $dbh->selectcol_arrayref(
149-
"SELECT `value` FROM `config` WHERE `name` = 'PMA_CONTROL_USER'" ) }
150-
) ) {
148+
my ( $controlUser ) = @{ $dbh->selectcol_arrayref(
149+
"SELECT `value` FROM `config` WHERE `name` = 'PMA_CONTROL_USER'"
150+
) };
151+
152+
if ( defined $controlUser ) {
151153
$controlUser = decryptRijndaelCBC(
152154
$::imscpDBKey, $::imscpDBiv, $controlUser
153155
);

0 commit comments

Comments
 (0)