@@ -94,11 +94,9 @@ |
||
| 94 | 94 | { |
| 95 | 95 | if (extension_loaded("mysqli")) { |
| 96 | 96 | $connection = new Db\MySqli\Connection($this, $this->util, $this->trans, 'MySQLi'); |
| 97 | - } |
|
| 98 | - elseif (extension_loaded("pdo_mysql")) { |
|
| 97 | + } elseif (extension_loaded("pdo_mysql")) { |
|
| 99 | 98 | $connection = new Db\Pdo\Connection($this, $this->util, $this->trans, 'PDO_MySQL'); |
| 100 | - } |
|
| 101 | - else { |
|
| 99 | + } else { |
|
| 102 | 100 | throw new AuthException($this->trans->lang('No package installed to connect to a MySQL server.')); |
| 103 | 101 | } |
| 104 | 102 | |