From 8b527820e977d3d9a9eca5fd0e844940a51c3a15 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Mon, 10 Oct 2016 00:11:41 +0300 Subject: [PATCH] Fixed shameful bug on displaying accounts list. --- ident_switch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ident_switch.php b/ident_switch.php index 002e4e5..c1fa911 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -73,8 +73,8 @@ class ident_switch extends rcube_plugin // Get list of alternative accounts $sOpt = ''; $sql = 'SELECT id, iid, label, username FROM ' . $rc->db->table_name($this->table) . ' WHERE user_id = ? AND flags & ? > 0'; - $q = $rc->db->query($sql, $rc->user->data['user_id'], $this->db_enabled); - while ($r = $rc->db->fetch_assoc($q)) + $qRec = $rc->db->query($sql, $rc->user->data['user_id'], $this->db_enabled); + while ($r = $rc->db->fetch_assoc($qRec)) { $opts = array('value' => $r['id']); if ($iid_int == $r['iid'])