From 27b62af5ceb44b6c72ee5681a2f19bc50fedd215 Mon Sep 17 00:00:00 2001 From: alf Date: Wed, 26 Jan 2022 17:23:03 +0300 Subject: [PATCH] fixed error checking additional properties of users --- password_recovery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/password_recovery.php b/password_recovery.php index 3802d78..dc037c2 100644 --- a/password_recovery.php +++ b/password_recovery.php @@ -71,7 +71,7 @@ class password_recovery extends rcube_plugin { $query = "SELECT " . $field_name . " FROM " . $this->rc->config->get('pr_users_table'); $result = $this->db->query($query); if (!$result) { - $query = "ALTER TABLE " . $this->rc->config->get('pr_users_table') . " ADD " . $field_name . " " . $field_props['type'] . " CHARACTER SET utf8 NOT NULL" . " DEFAULT " . $field_props['default'] ; + $query = "ALTER TABLE " . $this->rc->config->get('pr_users_table') . " ADD " . $field_name . " " . $field_props['type'] . " DEFAULT " . $field_props['default']; $result = $this->db->query($query); } }