diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-03-16 00:03:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 00:03:54 +0300 |
commit | 012089b696d14a4f13fdb12d5d1451388b7ca7db (patch) | |
tree | f59be3ebc80e414c69b0ab2ac75302bed1299d09 /plugins/Installation/Installation.php | |
parent | d400318f7bd3082f3e1b783c823da2b75e7f8cdb (diff) |
Trigger DB failed exception also for POST API requests (#12621)
Diffstat (limited to 'plugins/Installation/Installation.php')
-rw-r--r-- | plugins/Installation/Installation.php | 2 |
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; } |