Always return settings

master
andryyy 2017-03-04 00:19:10 +01:00
parent c303ef35ae
commit 211e4158a2
1 changed files with 7 additions and 0 deletions

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