Don't fail if we can't log sentmail info.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Aug 2010 21:57:01 +0000 (15:57 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Aug 2010 22:07:57 +0000 (16:07 -0600)
This should not be fatal to an end user.

imp/lib/Sentmail/Sql.php

index 5287949..e24b499 100644 (file)
@@ -91,7 +91,9 @@ class IMP_Sentmail_Sql extends IMP_Sentmail_Driver
         );
 
         /* Execute the query. */
-        $this->_db->insert($query, $values);
+        try {
+            $this->_db->insert($query, $values);
+        } catch (Horde_Db_Exception $e) {}
     }
 
     /**