Skip to content

Commit 845e599

Browse files
Merge pull request #24 from clinically-au/master
Fix references to $socket; should be $sock
2 parents 6ed8700 + a904097 commit 845e599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ManageSieve/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ public function connect($username, $password, $tls=false, $authz_id="", $auth_me
601601
if (isset(self::$connectionPool[$connectionKey])) {
602602
$connection = self::$connectionPool[$connectionKey];
603603
if ($this->isConnectionValid($connection)) {
604-
$this->socket = $connection;
604+
$this->sock = $connection;
605605
return true;
606606
} else {
607607
unset(self::$connectionPool[$connectionKey]);
@@ -618,7 +618,7 @@ public function connect($username, $password, $tls=false, $authz_id="", $auth_me
618618
}
619619

620620
$this->connected = true;
621-
self::$connectionPool[$connectionKey] = $this->socket;
621+
self::$connectionPool[$connectionKey] = $this->sock;
622622
if (!$this->getCapabilitiesFromServer()) {
623623
throw new SocketException("Failed to read capabilities from the server");
624624
}

0 commit comments

Comments
 (0)