From 83316e175dfb0aa4dde06a975600292be60dd132 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 23 Jul 2014 12:15:50 +0200 Subject: Reset $value in a loop --- program/lib/Roundcube/rcube_addressbook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/lib/Roundcube/rcube_addressbook.php') diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php index 7566d6546..71d556234 100644 --- a/program/lib/Roundcube/rcube_addressbook.php +++ b/program/lib/Roundcube/rcube_addressbook.php @@ -580,7 +580,8 @@ abstract class rcube_addressbook if (preg_match_all('/\{[a-z]+\}/', $result, $matches)) { foreach ($matches[0] as $key) { - $key = trim($key, '{}'); + $key = trim($key, '{}'); + $value = ''; switch ($key) { case 'name': -- cgit v1.2.3