diff --git a/lib/Db/CardMapper.php b/lib/Db/CardMapper.php index cb367c359..c8d8f4d2a 100644 --- a/lib/Db/CardMapper.php +++ b/lib/Db/CardMapper.php @@ -81,7 +81,8 @@ public function update(Entity $entity, $updateModified = true): Entity { } // make sure we only reset the notification flag if the duedate changes - if (in_array('duedate', $entity->getUpdatedFields(), true)) { + $updatedFields = $entity->getUpdatedFields(); + if (isset($updatedFields['duedate']) && $updatedFields['duedate']) { try { /** @var Card $existing */ $existing = $this->find($entity->getId());