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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-03-16 00:03:54 +0300
committerGitHub <noreply@github.com>2018-03-16 00:03:54 +0300
commit012089b696d14a4f13fdb12d5d1451388b7ca7db (patch)
treef59be3ebc80e414c69b0ab2ac75302bed1299d09 /plugins/Installation/Installation.php
parentd400318f7bd3082f3e1b783c823da2b75e7f8cdb (diff)
Trigger DB failed exception also for POST API requests (#12621)
Diffstat (limited to 'plugins/Installation/Installation.php')
-rw-r--r--plugins/Installation/Installation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Installation/Installation.php b/plugins/Installation/Installation.php
index a9e19b38d2..aa4ff1c6df 100644
--- a/plugins/Installation/Installation.php
+++ b/plugins/Installation/Installation.php
@@ -45,7 +45,7 @@ class Installation extends \Piwik\Plugin
$errorMessage = $exception->getMessage();
- if (Request::isApiRequest($_GET)) {
+ if (Request::isApiRequest(null)) {
$ex = new DatabaseConnectionFailedException($errorMessage);
throw $ex;
}