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:
Diffstat (limited to 'plugins/Installation/FormDatabaseSetup.php')
-rw-r--r--plugins/Installation/FormDatabaseSetup.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Installation/FormDatabaseSetup.php b/plugins/Installation/FormDatabaseSetup.php
index e288fe0ea2..ed1edaf4ab 100644
--- a/plugins/Installation/FormDatabaseSetup.php
+++ b/plugins/Installation/FormDatabaseSetup.php
@@ -213,7 +213,11 @@ class Piwik_Installation_FormDatabaseSetup_Rule_checkUserPrivileges extends HTML
{
try
{
- $db->exec($sql);
+ if( in_array($privilegeType, array('SELECT'))) {
+ $db->fetchAll($sql);
+ } else {
+ $db->exec($sql);
+ }
}
catch (Exception $ex)
{