Fix for settings

This commit is contained in:
andryyy 2017-03-04 00:27:57 +01:00
parent 8c2416b711
commit 285e295d91

View File

@ -15,14 +15,15 @@ $opt = [
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_EMULATE_PREPARES => false,
]; ];
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
try { try {
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
$stmt = $pdo->query("SELECT * FROM `filterconf`"); $stmt = $pdo->query("SELECT * FROM `filterconf`");
} }
catch (PDOException $e) { catch (PDOException $e) {
echo 'settings { }'; echo 'settings { }';
exit; exit;
} }
?> ?>
settings { settings {
<?php <?php