@@ -23,8 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function insert(string $table, array $set) |
25 | 25 | { |
26 | - $result = ($set ? parent::insert($table, $set) : |
|
27 | - $this->execute('INSERT INTO ' . $this->driver->table($table) . ' () VALUES ()')); |
|
26 | + $result = ($set ? parent::insert($table, $set) : $this->execute('INSERT INTO ' . $this->driver->table($table) . ' () VALUES ()')); |
|
28 | 27 | return $result == true; |
29 | 28 | } |
30 | 29 |
@@ -95,8 +95,7 @@ |
||
95 | 95 | $connection = null; |
96 | 96 | if (extension_loaded("pdo_mysql")) { |
97 | 97 | $connection = new Db\Pdo\Connection($this, $this->util, $this->trans, 'PDO_MySQL'); |
98 | - } |
|
99 | - else { |
|
98 | + } else { |
|
100 | 99 | throw new AuthException($this->trans->lang('No package installed to connect to a MySQL server.')); |
101 | 100 | } |
102 | 101 |