summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-02 21:34:34 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-02 21:36:33 +0200
commitf7e410147f519c877b3bdaa441d1f8e036617cb1 (patch)
tree9a92eabd5c8c7c56d6409526bcab648a7a2ed8fb /apps
parentec98ecff052425643765d7acb8d4af62d33a13cf (diff)
downloadnextcloud-server-f7e410147f519c877b3bdaa441d1f8e036617cb1.tar.gz
nextcloud-server-f7e410147f519c877b3bdaa441d1f8e036617cb1.zip
Contacts: check for malformed VCards in calendar hook
Diffstat (limited to 'apps')
-rwxr-xr-xapps/contacts/lib/hooks.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/contacts/lib/hooks.php b/apps/contacts/lib/hooks.php
index 2e862462716..e3d5df3d51f 100755
--- a/apps/contacts/lib/hooks.php
+++ b/apps/contacts/lib/hooks.php
@@ -64,6 +64,9 @@ class OC_Contacts_Hooks{
OC_Contacts_App::getAddressbook($aid);
foreach(OC_Contacts_VCard::all($aid) as $card){
$vcard = OC_VObject::parse($card['carddata']);
+ if (!$vcard) {
+ continue;
+ }
$birthday = $vcard->BDAY;
if ($birthday) {
$date = new DateTime($birthday);