Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail/FileLocation): catch isDbDuplicate regardless of log l…
Browse files Browse the repository at this point in the history
…evel

Change-Id: Ib33cbaa842be70ca9a03c1f26e61159798622e8e
Reviewed-on: http://gerrit.tine20.com/customers/18653
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
  • Loading branch information
pschuele committed Dec 7, 2020
1 parent 47b0470 commit 04083c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Felamimail/Controller/MessageFileLocation.php
Expand Up @@ -167,8 +167,10 @@ public function createMessageLocationForRecord($message, $location, $record, $no
try {
$this->create($locationToCreate);
} catch (Zend_Db_Statement_Exception $zdse) {
if (Tinebase_Exception::isDbDuplicate($zdse) && Tinebase_Core::isLogLevel(Zend_Log::NOTICE)) {
Tinebase_Core::getLogger()->notice(__METHOD__ . '::' . __LINE__ . ' ' . $zdse->getMessage());
if (Tinebase_Exception::isDbDuplicate($zdse)) {
if (Tinebase_Core::isLogLevel(Zend_Log::NOTICE)) {
Tinebase_Core::getLogger()->notice(__METHOD__ . '::' . __LINE__ . ' ' . $zdse->getMessage());
}
} else {
throw $zdse;
}
Expand Down

0 comments on commit 04083c9

Please sign in to comment.