Skip to content

Commit 78fd845

Browse files
committed
fix(abstractitiltarget): alternative email lost if no requester user
1 parent f04e418 commit 78fd845

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inc/abstractitiltarget.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,8 +2184,10 @@ public function cleanActors(array $data): array {
21842184
}
21852185
} else {
21862186
if ($data["$actorType"] == 0) {
2187-
unset($data["$actorType"]);
2188-
unset($data["${actorType}_notif"]);
2187+
if (isset($data["${actorType}_notif"]) && count($data["${actorType}_notif"]) < 1) {
2188+
unset($data["$actorType"]);
2189+
unset($data["${actorType}_notif"]);
2190+
}
21892191
}
21902192
}
21912193
}

0 commit comments

Comments
 (0)