Skip to content

Commit 54b0441

Browse files
committed
fix: if conditions to build DSN
1 parent 53bfdef commit 54b0441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/OCI8/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private function isValidDSN(): bool
120120
*/
121121
public function connect(bool $persistent = false)
122122
{
123-
if (empty($this->DSN) && ! $this->isValidDSN()) {
123+
if ($this->DSN === null || $this->DSN === '' || ! $this->isValidDSN()) {
124124
$this->buildDSN();
125125
}
126126

0 commit comments

Comments
 (0)