From 57f8c08d72d10e1aadfbd809dac93d382836d896 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Tue, 15 Oct 2019 16:28:48 +0200 Subject: [PATCH] Fix possibili email non individuate --- update/2_4_11.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update/2_4_11.php b/update/2_4_11.php index a995c45ba..f2530a739 100644 --- a/update/2_4_11.php +++ b/update/2_4_11.php @@ -7,6 +7,8 @@ use Modules\Emails\Template; $database->query('ALTER TABLE `zz_operations` DROP FOREIGN KEY `zz_operations_ibfk_3`'); $logs = $database->fetchArray("SELECT * FROM `zz_operations` WHERE `op` = 'send-email'"); + +$database->query('UPDATE `zz_operations` SET `id_email` = NULL'); foreach ($logs as $log) { $user = User::find($log['id_utente']); $template = Template::find($log['id_email']);