We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a99709 commit 7b3a077Copy full SHA for 7b3a077
src/Mailbox.php
@@ -264,7 +264,6 @@ public static function deleteMailbox($imap, $mailbox)
264
}
265
266
$client = $imap->getClient();
267
- $client->setDebug(true);
268
269
if ($mailbox[0] == '{') {
270
$mailbox = (string) \preg_replace('/^{.+}/', '', $mailbox);
@@ -274,7 +273,7 @@ public static function deleteMailbox($imap, $mailbox)
274
273
275
$success = $result[0] == ImapClient::ERROR_OK;
276
277
- if (empty($success)) {
+ if (!$success) {
278
Errors::appendError("Can't delete mailbox {$mailbox}: no such mailbox");
279
280
0 commit comments