From 8ecaa884615a40b7e5887fbfdb879c6330cfc396 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 10 Jul 2017 13:37:04 +0200 Subject: [PATCH 1/2] Errores edi/clean solucionados --- debian/changelog | 2 +- rest/edi/clean.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 761b70b3..0ecd7ce0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.405.8) stable; urgency=low +hedera-web (1.405.9) stable; urgency=low * Initial Release. diff --git a/rest/edi/clean.php b/rest/edi/clean.php index 7eb58c28..55a61515 100644 --- a/rest/edi/clean.php +++ b/rest/edi/clean.php @@ -21,7 +21,7 @@ class Clean extends Edi\Method ]; foreach ($folders as $folder) - if (imap_reopen ($imap, $this->mailbox .'.'. $folder)) + if (imap_reopen ($imap, "{$this->mailbox}$folder")) { if ($messages = imap_search ($imap, $filter)) { @@ -39,6 +39,10 @@ class Clean extends Edi\Method } echo "Total $deleted mails deleted\n"; + + echo "Deleting records from database\n"; + $db->query ('DELETE FROM message WHERE created < #', [$date]); + echo "Done\n"; } } From 7359dcb69a8d6b8c2b7450a3d6111c714e8ad536 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 14 Jul 2017 07:16:41 +0200 Subject: [PATCH 2/2] Minimal changes --- rest/edi/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/edi/update.php b/rest/edi/update.php index ac7a4e90..39fa1c00 100644 --- a/rest/edi/update.php +++ b/rest/edi/update.php @@ -9,7 +9,7 @@ class Update extends Vn\Lib\Method $tmpDir = '/tmp/floricode'; - // Establece una conexión FTP + // Establece una conexi�n FTP $ftpConf = $db->getRow ('SELECT host, user, password FROM ftp_config'); @@ -79,7 +79,7 @@ class Update extends Vn\Lib\Method if (!$fileName) throw new Exception ("Import file for table $table does not exist"); - // Si los datos están actualizados omite la tabla + // Si los datos están actualizados omite la tabla $lastUpdated = substr ($fileName, -10, 6); $lastUpdated = DateTime::createFromFormat ('dmy', $lastUpdated);