Return FALSE instead of throwing Exception if package throws Exception
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 29 Oct 2019 04:26:57 +0000 (15:26 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 9 Nov 2019 02:59:15 +0000 (13:59 +1100)
CRM/Utils/String.php

index 44c415336870d0465759d6a07f1b95b4d4fb6b2c..3dacacf16ec4b76b0d6a911d1924fb82757393b1 100644 (file)
@@ -954,7 +954,7 @@ class CRM_Utils_String {
       return unserialize($string);
     }
     catch (UnserializeFailedException $e) {
-      throw new CRM_Core_Exception($e->getMessage());
+      return FALSE;
     }
   }