mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:50:10 +00:00
Prevent infinite loop when a dbstructure_definition hook is orphan
- Add cascade option to dba::delete - use cascade = false for orphan hook deletion
This commit is contained in:
parent
c57f0bcce6
commit
18078ce7a4
2 changed files with 7 additions and 5 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue