Always return settings
This commit is contained in:
parent
c303ef35ae
commit
211e4158a2
@ -16,6 +16,13 @@ $opt = [
|
|||||||
PDO::ATTR_EMULATE_PREPARES => false,
|
PDO::ATTR_EMULATE_PREPARES => false,
|
||||||
];
|
];
|
||||||
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
|
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
|
||||||
|
try {
|
||||||
|
$stmt = $pdo->query("SELECT * FROM `filterconf`");
|
||||||
|
}
|
||||||
|
catch (PDOException $e) {
|
||||||
|
echo 'settings { }';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
settings {
|
settings {
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
Reference in New Issue
Block a user