Skip to content

Commit bd7afbc

Browse files
committed
fix: patch up missing connection
1 parent bb200bb commit bd7afbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Db/Core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function __construct(
108108

109109
/**
110110
* Load db credentials, but defer connection until needed
111-
*
111+
*
112112
* @param string|array $host Host Name or full config
113113
* @param string $dbname Database name
114114
* @param string $user Database username
@@ -376,7 +376,7 @@ public function bind(...$bindings): self
376376
*/
377377
public function execute()
378378
{
379-
if ($this->connection === null) {
379+
if ($this->connection() === null) {
380380
trigger_error('Initialise your database first with connect()');
381381
}
382382

0 commit comments

Comments
 (0)