From e4aeef2e07f85c0feb7b586f0abddfb95c49e223 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Mon, 12 Mar 2018 23:14:06 +0300 Subject: [PATCH] Fixed bug with identity updating. --- ident_switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ident_switch.php b/ident_switch.php index a9c622c..8fe395e 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -378,7 +378,7 @@ class ident_switch extends rcube_plugin private static function save_field_values($rc, $data) { $sql = 'SELECT id, password FROM ' . $rc->db->table_name(self::TABLE) . ' WHERE iid = ? AND user_id = ?'; - $q = $rc->db->query($sql, $args['id'], $rc->user->ID); + $q = $rc->db->query($sql, $data['id'], $rc->user->ID); $r = $rc->db->fetch_assoc($q); if ($r) { // Record already exists, will update it