From e0dc07e2b0032aa4a2b3c8ab12dafa66562fd105 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 14 Sep 2010 17:50:37 -0400 Subject: [PATCH] We need the results of these method calls. Not sure why these were removed, but it breaks importing contacts via the API. --- turba/lib/Api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/turba/lib/Api.php b/turba/lib/Api.php index 22b63cea1..9a54ab9b9 100644 --- a/turba/lib/Api.php +++ b/turba/lib/Api.php @@ -657,18 +657,18 @@ class Turba_Api extends Horde_Registry_Api continue; } - $driver->add($content); + $result = $driver->add($content); if (!empty($content['category']) && !in_array($content['category'], $categories)) { $cManager->add($content['category']); $categories[] = $content['category']; - } + } $ids[] = $result; } } + return $ids; } - break; case 'activesync': $content = $driver->fromASContact($content); @@ -690,7 +690,7 @@ class Turba_Api extends Horde_Registry_Api throw new Turba_Exception(_("Already Exists")); } - $driver->add($content); + $result = $driver->add($content); if (!empty($content['category']) && !in_array($content['category'], $categories)) { -- 2.11.0