Skip to content

Commit b9421d3

Browse files
committed
Fixed issue in mongoDb driver
1 parent b1e39c4 commit b9421d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/phpFastCache/Drivers/Mongodb/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ protected function driverConnect()
179179
throw new LogicException('Already connected to Mongodb server');
180180
} else {
181181
$host = isset($this->config[ 'host' ]) ? $this->config[ 'host' ] : '127.0.0.1';
182-
$port = isset($server[ 'port' ]) ? $server[ 'port' ] : '27017';
183-
$timeout = isset($server[ 'timeout' ]) ? $server[ 'timeout' ] : 3;
182+
$port = isset($this->config[ 'port' ]) ? $this->config[ 'port' ] : '27017';
183+
$timeout = isset($this->config[ 'timeout' ]) ? $this->config[ 'timeout' ] : 3;
184184
$password = isset($this->config[ 'password' ]) ? $this->config[ 'password' ] : '';
185185
$username = isset($this->config[ 'username' ]) ? $this->config[ 'username' ] : '';
186186
$collectionName = isset($this->config[ 'collectionName' ]) ? $this->config[ 'collectionName' ] : 'Cache';

0 commit comments

Comments
 (0)