Skip to content

Commit 73975f7

Browse files
authored
Merge pull request #3 from spyridonas/patch-1
Fix for include only (issue #2)
2 parents fe990ce + 4fcd7e5 commit 73975f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SimpleBackup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ public function includeOnly($tables = [])
438438
{
439439
$this->include_only_some_tables = true;
440440

441-
$this->tables_to_include = array_filter($tables, static function($table) {
442-
if(in_array($table, $this->getTargetTables(), false)) {
441+
$this->tables_to_include = array_filter($this->getTargetTables(), static function($table) use ($tables) {
442+
if(in_array($table, $tables, false)) {
443443
return $table;
444444
}
445445

0 commit comments

Comments
 (0)