Skip to content

Commit fc7d8a2

Browse files
committed
fix(abstractitiltarget): use_notification is not a bool
1 parent 6276402 commit fc7d8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/abstractitiltarget.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,12 +645,12 @@ protected function addActor($role, $user, $notify) {
645645
if ($actorKey === false) {
646646
// Add the actor
647647
$actorType[] = $userId;
648-
$actorTypeNotif['use_notification'][] = ($notify == true);
648+
$actorTypeNotif['use_notification'][] = $notify;
649649
$actorTypeNotif['alternative_email'][] = $alternativeEmail;
650650
} else {
651651
// New actor settings takes precedence
652652
$actorType[$actorKey] = $userId;
653-
$actorTypeNotif['use_notification'][$actorKey] = ($notify == true);
653+
$actorTypeNotif['use_notification'][$actorKey] = $notify;
654654
$actorTypeNotif['alternative_email'][$actorKey] = $alternativeEmail;
655655
}
656656

0 commit comments

Comments
 (0)