Skip to content

Commit 7b3a077

Browse files
fix
1 parent 7a99709 commit 7b3a077

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Mailbox.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ public static function deleteMailbox($imap, $mailbox)
264264
}
265265

266266
$client = $imap->getClient();
267-
$client->setDebug(true);
268267

269268
if ($mailbox[0] == '{') {
270269
$mailbox = (string) \preg_replace('/^{.+}/', '', $mailbox);
@@ -274,7 +273,7 @@ public static function deleteMailbox($imap, $mailbox)
274273

275274
$success = $result[0] == ImapClient::ERROR_OK;
276275

277-
if (empty($success)) {
276+
if (!$success) {
278277
Errors::appendError("Can't delete mailbox {$mailbox}: no such mailbox");
279278
}
280279

0 commit comments

Comments
 (0)