Skip to content

Commit

Permalink
Merge pull request #34 from joker806/empty_flags
Browse files Browse the repository at this point in the history
Allow empty connection flags
  • Loading branch information
ddeboer committed Aug 10, 2014
2 parents 47025a9 + dcf4be9 commit 7306dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ddeboer/Imap/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct($hostname, $port = 993, $flags = '/imap/ssl/validate
{
$this->hostname = $hostname;
$this->port = $port;
$this->flags = '/'.ltrim($flags, '/');
$this->flags = $flags ? '/' . ltrim($flags, '/') : '';
}

/**
Expand Down

0 comments on commit 7306dc4

Please sign in to comment.