From 7fc9b545d32c1fc6c299042f8bdd6efdb22842d2 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 27 Jul 2011 11:33:47 +0000 Subject: - Fix source ID handling git-svn-id: https://svn.roundcube.net/trunk@4974 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/addressbook/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/steps') diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc index 0a5a02287..b74b45f79 100644 --- a/roundcubemail/program/steps/addressbook/func.inc +++ b/roundcubemail/program/steps/addressbook/func.inc @@ -199,7 +199,7 @@ function rcmail_directory_list($attrib) $current = get_input_value('_source', RCUBE_INPUT_GPC); foreach ($sources as $j => $source) { - $id = strval($source['id'] ? $source['id'] : $j); + $id = strval(strlen($source['id']) ? $source['id'] : $j); $js_id = JQ($id); // set class name(s) -- cgit v1.2.3