Skip to content

Commit

Permalink
Allow empty connection flags
Browse files Browse the repository at this point in the history
  • Loading branch information
pepamartinec committed Jan 31, 2014
1 parent ed80957 commit dcf4be9
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 dcf4be9

Please sign in to comment.