Skip to content

Commit

Permalink
Fixing PHP 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Mar 17, 2022
1 parent 91e642c commit 7b5cca5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Database/DblibDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public function executeSql($sql)
$statements = preg_split("/;(\r\n|\r|\n)/", $sql);

foreach ($statements as $sql) {
if (empty(trim($sql))) {
continue;
}
$this->executeSqlInternal($sql);
}
}

protected function executeSqlInternal($sql)
{
if (empty(trim($sql))) {
return;
}
$this->getDbDriver()->execute($sql);
}

Expand Down
3 changes: 3 additions & 0 deletions src/Database/SqliteDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public function executeSql($sql)

protected function executeSqlInternal($sql)
{
if (empty(trim($sql))) {
return;
}
$this->getDbDriver()->execute($sql);
}

Expand Down

0 comments on commit 7b5cca5

Please sign in to comment.