Skip to content

Commit

Permalink
Fixed errors with PHP 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Dec 20, 2020
1 parent 591cc65 commit 7423517
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions system/classes/dbbackup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ public function getTableList()
$this->tablenames = array_intersect($mysql_tables, $_TABLES);

// Get exclusions and remove from backup list
$this->exclusions = @unserialize($_VARS['_dbback_exclude']);
if (!is_array($this->exclusions))
$this->exclusions = [$this->exclusions];
if (isset($_VARS['_dbback_exclude'])) {
$this->exclusions = @unserialize($_VARS['_dbback_exclude']);
if (!is_array($this->exclusions)) {
$this->exclusions = [$this->exclusions];
}
} else {
$this->exclusions = [];
}
$this->tablenames = array_diff($this->tablenames, $this->exclusions);

return $this->tablenames;
Expand Down

0 comments on commit 7423517

Please sign in to comment.