aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/connections.php b/include/connections.php
index 56457ea10..8df795190 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -634,8 +634,8 @@ function get_vcard_array($vc,$id) {
'address' => $adr->getParts()
];
$last_entry = end($adrs);
- if($last_entry['address'])
- array_walk($last_entry['address'],'array_escape_tags');
+ if($last_entry && is_array($adrs[$last_entry]['address']))
+ array_walk($adrs[$last_entry]['address'],'array_escape_tags');
}
}