This commit is contained in:
2021-02-23 18:03:14 +08:00
parent 54c5536caf
commit 45f229af75
+1 -1
View File
@@ -193,7 +193,7 @@ class Event extends BaseObject
{
try {
if (!$this->exists($name)) {
return false;
return true;
}
if (!empty($handler) && $this->exists($name, $handler)) {
$events = [$this->get($name, $handler)];