Skip to content

Commit 966ca7d

Browse files
committed
Update ezSchema.php
1 parent 9e0d43f commit 966ca7d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

shared/ezSchema.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,16 @@ public static function vendor()
160160
$dbMysqli = $GLOBALS['db_mysqli'];
161161
$dbMssql = $GLOBALS['db_sqlsrv'];
162162
$dbPdo = $GLOBALS['db_pdo'];
163-
if ($dbSqlite === \getInstance() && !empty($dbSqlite))
163+
$instance = \getInstance();
164+
if ($dbSqlite === $instance && !empty($dbSqlite))
164165
$type = 'sqlite3';
165-
elseif ($dbPgsql === \getInstance() && !empty($dbPgsql))
166+
elseif ($dbPgsql === $instance && !empty($dbPgsql))
166167
$type = 'postgresql';
167-
elseif ($dbMysqli === \getInstance() && !empty($dbMysqli))
168+
elseif ($dbMysqli === $instance && !empty($dbMysqli))
168169
$type = 'mysql';
169-
elseif ($dbMssql === \getInstance() && !empty($dbMssql))
170+
elseif ($dbMssql === $instance && !empty($dbMssql))
170171
$type = 'sqlserver';
171-
elseif ($dbPdo === \getInstance() && !empty($dbPdo)) {
172+
elseif ($dbPdo === $instance && !empty($dbPdo)) {
172173
$dbh = $dbPdo->connection();
173174
if (strpos($dbh->getAttribute(\PDO::ATTR_CLIENT_VERSION), 'mysql') !== false)
174175
$type = 'mysql';

0 commit comments

Comments
 (0)