Skip to content

Commit

Permalink
Label could conceivably be 0, so can't use empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 19, 2014
1 parent 7232063 commit 58dde95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Ajax/Application/Handler/RemotePrefs.php
Expand Up @@ -61,7 +61,7 @@ public function autoconfigAccount()

$res->mconfig = (object)$mconfig;
$res->mconfig->imap = $imap;
if (empty($res->mconfig->label)) {
if (!strlen($res->mconfig->label)) {
$res->mconfig->label = $email->bare_address;
}
$res->success = true;
Expand Down

0 comments on commit 58dde95

Please sign in to comment.