diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-26 08:30:28 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-26 08:30:28 +0400 |
commit | b2f762aab0fdc1ff9320d72bca0ab50e313f7eeb (patch) | |
tree | aefb7f274d69d3f7edab2a31374f227b23dd4a96 /core/Tracker/GoalManager.php | |
parent | 44a7ec878054918d2f2826f23c996b74b7336619 (diff) |
Fixes #4340
Diffstat (limited to 'core/Tracker/GoalManager.php')
-rw-r--r-- | core/Tracker/GoalManager.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index 483d307993..91560fe43c 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -13,6 +13,7 @@ namespace Piwik\Tracker; use Exception; use Piwik\Common; use Piwik\Config; +use Piwik\Log; use Piwik\Piwik; use Piwik\Tracker; @@ -837,7 +838,13 @@ class GoalManager $sql = 'UPDATE ' . Common::prefixTable('log_conversion') . " SET " . implode($updateParts, ', ') . " WHERE " . implode($updateWhereParts, ' AND '); - Tracker::getDatabase()->query($sql, $sqlBind); + + try { + Tracker::getDatabase()->query($sql, $sqlBind); + } catch(Exception $e){ + Common::printDebug("There was an error while updating the Conversion: " . $e->getMessage()); + return false; + } return true; } } |