Merge branch '2015.11' into 2015.11-develop
[tine20] / tine20 / Tinebase / Controller / ScheduledImport.php
index b4862f9..8257ee0 100644 (file)
@@ -167,8 +167,8 @@ class Tinebase_Controller_ScheduledImport extends Tinebase_Controller_Record_Abs
     protected function _getFileToImport($source)
     {
         if (strpos($source, 'http') === 0) {
-            $client = new Zend_Http_Client($source);
             try {
+                $client = new Zend_Http_Client($source);
                 $requestBody = $client->request()->getBody();
             } catch (Exception $e) {
                 Tinebase_Exception::log($e);
@@ -310,4 +310,4 @@ class Tinebase_Controller_ScheduledImport extends Tinebase_Controller_Record_Abs
         
         return $this->create($record);
     }
-}
\ No newline at end of file
+}