A few bugfixes

This commit is contained in:
2022-12-30 13:31:57 +01:00
parent 248c6f6e39
commit 32cbcc35cc
5 changed files with 33 additions and 17 deletions

View File

@ -47,10 +47,10 @@ while ( $tmp = $stmt->fetch( PDO::FETCH_ASSOC ) ) {
$delete_prosody_archive->execute( [ $tmp[ 'local_part' ], $tmp[ 'domain' ] ] );
}
}
if ( $tmp[ 'active' ] === '-2' ) {
if ( $tmp[ 'active' ] === -2 ) {
$delete->execute( [ $tmp[ 'username' ] ] );
}
if ( $tmp[ 'active' ] === '-1' ) {
if ( $tmp[ 'active' ] === -1 ) {
$disable->execute( [ $tmp[ 'username' ] ] );
}
$delete_alias->execute( [ $tmp[ 'username' ] ] );