From 0bcfb0b470b7031681c1d360048788571ea1d5d1 Mon Sep 17 00:00:00 2001 From: alf Date: Wed, 26 Jan 2022 17:33:44 +0300 Subject: [PATCH] fixed error checking additional properties of users --- password_recovery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/password_recovery.php b/password_recovery.php index dc037c2..118472b 100644 --- a/password_recovery.php +++ b/password_recovery.php @@ -59,12 +59,12 @@ class password_recovery extends rcube_plugin { $this->use_password = ($this->rc->config->get('pr_use_password_plugin') && $this->rc->plugins->load_plugin('password', true)); $new_fields = [ - 'token' => ['type' => 'VARCHAR(255)', 'default' => '""'], - 'token_validity' => ['type' => 'DATETIME' , 'default' => '2000-01-01 00:00:00'] + 'token' => ['type' => 'VARCHAR(255)', 'default' => '\'\''], + 'token_validity' => ['type' => 'DATETIME' , 'default' => '\'2000-01-01 00:00:00\''] ]; foreach($this->fields as $field => $field_name){ - $new_fields[$field_name] = ['type' => ($field == 'phone' ? 'VARCHAR(30)' : 'VARCHAR(255)'), 'default' => '""']; + $new_fields[$field_name] = ['type' => ($field == 'phone' ? 'VARCHAR(30)' : 'VARCHAR(255)'), 'default' => '\'\'']; } foreach($new_fields as $field_name => $field_props){