Always return settings

This commit is contained in:
andryyy 2017-03-04 00:19:10 +01:00
parent c303ef35ae
commit 211e4158a2

View File

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