summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/func.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/addressbook/func.inc')
-rw-r--r--program/steps/addressbook/func.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 0f2d75705..f7f3dbfe9 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -670,7 +670,7 @@ function rcmail_get_cids()
// containing contact ID and source name in form: <ID>-<SOURCE>
$cid = get_input_value('_cid', RCUBE_INPUT_GPC);
- $source = get_input_value('_source', RCUBE_INPUT_GPC);
+ $source = (string) get_input_value('_source', RCUBE_INPUT_GPC);
if (!preg_match('/^[a-zA-Z0-9\+\/=_-]+(,[a-zA-Z0-9\+\/=_-]+)*$/', $cid)) {
return array();
@@ -686,10 +686,7 @@ function rcmail_get_cids()
if (!$got_source) {
list ($c, $s) = explode('-', $id, 2);
if (strlen($s)) {
- $result[$s][] = $c;
- }
- else if (strlen($source)) {
- $result[$source][] = $c;
+ $result[(string)$s][] = $c;
}
}
else {