diff --git a/migration/20.10/migrateNotificationsProperties.php b/migration/20.10/migrateNotificationsProperties.php index 3aa007c1192eac0fcc1bd6af496dfa64c8f23297..96b18129efd173e68f671c7ca59df9c12a2d40c1 100644 --- a/migration/20.10/migrateNotificationsProperties.php +++ b/migration/20.10/migrateNotificationsProperties.php @@ -26,8 +26,10 @@ foreach ($customs as $custom) { $users = array_column($users, 'id'); if (!empty($users)) { $users = implode(',', $users); - \Notification\models\NotificationModel::update(['notification_sid' => $notification['notification_sid'], 'diffusion_properties' => $users]); + } else { + $users = null; } + \Notification\models\NotificationModel::update(['notification_sid' => $notification['notification_sid'], 'diffusion_properties' => $users]); } } $migrated++;