From 64ebc94eec88a9d55d2725d10a7f5b9bb763652d Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 27 Jul 2011 11:33:47 +0000 Subject: - Fix source ID handling --- program/steps/addressbook/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 0a5a02287..b74b45f79 100644 --- a/program/steps/addressbook/func.inc +++ b/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