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:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-29 15:49:32 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-29 15:49:32 +0300
commit5bf3504b664356da3aa1c9db597ddb969449acd3 (patch)
tree96d53ff540b51c168a61b10038fab553d70d74cb /plugins/Dashboard
parent2b90f220a8a75056d18e52eedae25f1cf0aa125f (diff)
Use Piwik_Exec() for DDL queries as earlier versions of mysqli can't prepare these statements.
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/Dashboard.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dashboard/Dashboard.php b/plugins/Dashboard/Dashboard.php
index b65d36ec45..5e977160ea 100644
--- a/plugins/Dashboard/Dashboard.php
+++ b/plugins/Dashboard/Dashboard.php
@@ -59,7 +59,7 @@ class Piwik_Dashboard extends Piwik_Plugin
layout TEXT NOT NULL,
PRIMARY KEY ( login , iddashboard )
) DEFAULT CHARSET=utf8 " ;
- Piwik_Query($sql);
+ Piwik_Exec($sql);
} catch(Zend_Db_Statement_Exception $e){
// mysql code error 1050:table already exists
// see bug #153 http://dev.piwik.org/trac/ticket/153
@@ -73,7 +73,7 @@ class Piwik_Dashboard extends Piwik_Plugin
public function uninstall()
{
$sql = "DROP TABLE ". Piwik::prefixTable('user_dashboard') ;
- Piwik_Query($sql);
+ Piwik_Exec($sql);
}
}