From 21efcfc1d4911a978f961d3665a9f56d1a3c92dc Mon Sep 17 00:00:00 2001 From: Gabor de Mooij Date: Thu, 28 Oct 2021 00:21:43 +0200 Subject: [PATCH] Fix Spelling mistakes in setPDO method on RPDO.php. Closes #875. --- RedBeanPHP/Driver/RPDO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedBeanPHP/Driver/RPDO.php b/RedBeanPHP/Driver/RPDO.php index cfed9e2ab..5823a1ca6 100644 --- a/RedBeanPHP/Driver/RPDO.php +++ b/RedBeanPHP/Driver/RPDO.php @@ -510,7 +510,7 @@ public function setPDO( \PDO $pdo, $options = array() ) { if ( isset($options['runInitCode']) ) $runInitCode = $options['runInitCode']; if ( isset($options['stringFetch']) ) $stringFetch = $options['stringFetch']; - if ($connected) $this->connected = $connected; + if ($connected) $this->isConnected = $connected; if ($setEncoding) $this->setEncoding(); if ($setAttributes) { $this->pdo->setAttribute( \PDO::ATTR_ERRMODE,\PDO::ERRMODE_EXCEPTION );