Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-11-26 08:30:28 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-26 08:30:28 +0400
commitb2f762aab0fdc1ff9320d72bca0ab50e313f7eeb (patch)
treeaefb7f274d69d3f7edab2a31374f227b23dd4a96 /core/Tracker/GoalManager.php
parent44a7ec878054918d2f2826f23c996b74b7336619 (diff)
Fixes #4340
Diffstat (limited to 'core/Tracker/GoalManager.php')
-rw-r--r--core/Tracker/GoalManager.php9
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;
}
}