From 211e4158a22d804905e722067d178e82529f6f94 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 4 Mar 2017 00:19:10 +0100 Subject: [PATCH] Always return settings --- data/conf/rspamd/dynmaps/settings.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/conf/rspamd/dynmaps/settings.php b/data/conf/rspamd/dynmaps/settings.php index 90697821..8d1a399c 100644 --- a/data/conf/rspamd/dynmaps/settings.php +++ b/data/conf/rspamd/dynmaps/settings.php @@ -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 {