From dcf4be9570d00fb237eb9785ce067ba28060a3b9 Mon Sep 17 00:00:00 2001 From: Josef Martinec Date: Fri, 31 Jan 2014 16:59:03 +0100 Subject: [PATCH] Allow empty connection flags --- src/Ddeboer/Imap/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ddeboer/Imap/Server.php b/src/Ddeboer/Imap/Server.php index c8655a79..c406074c 100644 --- a/src/Ddeboer/Imap/Server.php +++ b/src/Ddeboer/Imap/Server.php @@ -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, '/') : ''; } /**