mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix return bug
This commit is contained in:
parent
889d6e4469
commit
4c178b17a5
|
|
@ -162,7 +162,10 @@ final class EventManager
|
|||
*/
|
||||
public function detach(string $group) : bool
|
||||
{
|
||||
return $this->detachCallback($group) | $this->detachGroup($group);
|
||||
$result1 = $this->detachCallback($group);
|
||||
$result2 = $this->detachGroup($group);
|
||||
|
||||
return $result1 || $result2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user