Merge pull request #4892 from MrPetovan/bug/infinite-loop-in-dba-delete

Prevent infinite loop when a dbstructure_definition hook is orphan
This commit is contained in:
Michael Vogel 2018-04-22 07:55:39 +02:00 committed by GitHub
commit 25662eb6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -246,7 +246,7 @@ class Addon
} else {
// remove orphan hooks
$condition = ['hook' => $name, 'file' => $hook[0], 'function' => $hook[1]];
dba::delete('hook', $condition);
dba::delete('hook', $condition, ['cascade' => false]);
}
}