summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-07-27 11:33:47 +0000
committeralecpl <alec@alec.pl>2011-07-27 11:33:47 +0000
commit64ebc94eec88a9d55d2725d10a7f5b9bb763652d (patch)
treec9655161d6421c27db397e0b2fce59a0106e3d26
parent1e36b718387359a9eb37bddb621c22b90e915d88 (diff)
- Fix source ID handling
-rw-r--r--program/steps/addressbook/func.inc2
1 files changed, 1 insertions, 1 deletions
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)