From: Michael J. Rubinsky Date: Tue, 14 Sep 2010 21:50:37 +0000 (-0400) Subject: We need the results of these method calls. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e0dc07e2b0032aa4a2b3c8ab12dafa66562fd105;p=horde.git We need the results of these method calls. Not sure why these were removed, but it breaks importing contacts via the API. --- 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)) {