From c909d4a71ef956ddb1095360167d083bb25e3f76 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 30 Sep 2016 21:12:15 +0000 Subject: [PATCH] FetchmailHandler: use a valid date as default for 'date' This fixes an invalid query when using mysql strict mode. Reported by Martin Kenney, https://sourceforge.net/p/postfixadmin/bugs/380/ git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1873 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/FetchmailHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/FetchmailHandler.php b/model/FetchmailHandler.php index e14157c6..4f14e09a 100644 --- a/model/FetchmailHandler.php +++ b/model/FetchmailHandler.php @@ -39,7 +39,7 @@ class FetchmailHandler extends PFAHandler { 'sslfingerprint'=> pacol( $extra, $extra, $extra, 'text', 'pFetchmail_field_sslfingerprint','' ), 'extra_options' => pacol( $extra, $extra, $extra, 'text', 'pFetchmail_field_extra_options', 'pFetchmail_desc_extra_options' ), 'mda' => pacol( $extra, $extra, $extra, 'text', 'pFetchmail_field_mda' , 'pFetchmail_desc_mda' ), - 'date' => pacol( 0, 0, 1, 'text', 'pFetchmail_field_date' , 'pFetchmail_desc_date' , 1 ), + 'date' => pacol( 0, 0, 1, 'text', 'pFetchmail_field_date' , 'pFetchmail_desc_date' , '2000-01-01' ), 'returned_text' => pacol( 0, 0, 1, 'text', 'pFetchmail_field_returned_text', 'pFetchmail_desc_returned_text' ), 'active' => pacol( 1, 1, 1, 'bool', 'active' , '' , 1 ), 'created' => pacol( 0, 0, 0, 'ts', 'created' , '' ),