Skip to content

Commit

Permalink
Fix importing vCard that contains only a single component via the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 3, 2015
1 parent aa0b780 commit d790741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turba/lib/Api.php
Expand Up @@ -707,7 +707,7 @@ public function import($content, $contentType = 'array', $source = null, array $
throw new Turba_Exception(_("No vCard data was found."));

case 1:
$content = $iCal->getComponent(0);
$content = $driver->toHash($iCal->getComponent(0));
break;

default:
Expand Down

0 comments on commit d790741

Please sign in to comment.