Fix bug in DSN creation
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ class syntax_plugin_sqlquery extends DokuWiki_Syntax_Plugin {
|
||||
$password = $this->getConf('password');
|
||||
|
||||
// connect to database
|
||||
$dsn = "{$data['type']}:host={$data['host']};dbname={$data[db]};charset=UTF8;";
|
||||
$dsn = "{$data['type']}:host={$data['host']};dbname={$data['db']};charset=UTF8;";
|
||||
try {
|
||||
$dbh = new PDO($dsn, $user, $password);
|
||||
} catch (PDOException $e) {
|
||||
|
||||
Reference in New Issue
Block a user