1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-28 16:50:06 +01:00
This commit is contained in:
loviuz 2019-10-15 16:47:10 +02:00
commit 2d9f4324de

View File

@ -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']);