Browse Source

Add exception catching when calling remote ppt2lp conversion

Yannick Warnier 8 years ago
parent
commit
1e04af6720
1 changed files with 5 additions and 1 deletions
  1. 5 1
      main/lp/openoffice_document.class.php

+ 5 - 1
main/lp/openoffice_document.class.php

@@ -221,7 +221,11 @@ abstract class OpenofficeDocument extends learnpath
             'service_ppt2lp_size' => $size,
         );
 
-        $result = $client->__call('wsConvertPpt', array('pptData' => $params));
+        try {
+            $result = $client->__call('wsConvertPpt', array('pptData' => $params));
+        } catch (Exception $e) {
+            error_log($e->getMessage());
+        }
 
         return $result;
     }