#312 Updater uses $databanktype

This commit is contained in:
Ulrich Block 2014-01-30 19:04:26 +01:00
parent c9ffcbd1f6
commit 290c969d0f

View File

@ -78,7 +78,7 @@ if (!isset($sql)) {
include(EASYWIDIR . '/stuff/config.php');
try {
$sql = new PDO("$databanktype:host=$host;dbname=$db", $user, $pwd, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
$sql = new PDO("mysql:host=$host;dbname=$db", $user, $pwd, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
}
catch(PDOException $error) {
echo $error->getMessage();