Permalink
Browse files

Zend\Db\Adapter\Driver\Mysqli

* Fixed casing of internal class names for mysqli for consistency
  • Loading branch information...
1 parent 98d5661 commit 8eff2381af4132f66009f41df13b3a5a6037db4c @ralphschindler ralphschindler committed Oct 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 library/Zend/Db/Adapter/Driver/Mysqli/Connection.php
@@ -166,7 +166,7 @@ public function connect()
$port = (isset($p['port'])) ? (int) $p['port'] : null;
$socket = (isset($p['socket'])) ? $p['socket'] : null;
- $this->resource = new \Mysqli($hostname, $username, $password, $database, $port, $socket);
+ $this->resource = new \mysqli($hostname, $username, $password, $database, $port, $socket);
if ($this->resource->connect_error) {
throw new Exception\RuntimeException(
@@ -189,7 +189,7 @@ public function connect()
*/
public function isConnected()
{
- return ($this->resource instanceof \Mysqli);
+ return ($this->resource instanceof \mysqli);
}
/**
@@ -199,7 +199,7 @@ public function isConnected()
*/
public function disconnect()
{
- if ($this->resource instanceof \PDO) {
+ if ($this->resource instanceof \mysqli) {
$this->resource->close();
}
unset($this->resource);

0 comments on commit 8eff238

Please sign in to comment.