Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60e532d
)
Protect from infinite remove recursion
author
Raphaël Gertz
<git@rapsys.eu>
Wed, 21 Feb 2024 11:47:00 +0000
(12:47 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Wed, 21 Feb 2024 11:47:00 +0000
(12:47 +0100)
Entity/Dance.php
patch
|
blob
|
history
diff --git
a/Entity/Dance.php
b/Entity/Dance.php
index 59896cdad505495196db859127b24a081cda5c7b..8d83062901439c9a72b02a88da5c5f7da43f1b7b 100644
(file)
--- a/
Entity/Dance.php
+++ b/
Entity/Dance.php
@@
-225,6
+225,10
@@
class Dance {
* @return bool
*/
public function removeUser(User $user): bool {
+ if (!$this->users->contains($user)) {
+ return true;
+ }
+
//Remove from owning side
$user->removeSubscriber($this);