mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +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
|
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