File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 ' ;
You can’t perform that action at this time.
0 commit comments