From 285e295d9118fff947ab81e19b9ea4c2ce0e0304 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 4 Mar 2017 00:27:57 +0100 Subject: [PATCH] Fix for settings --- data/conf/rspamd/dynmaps/settings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/conf/rspamd/dynmaps/settings.php b/data/conf/rspamd/dynmaps/settings.php index 8d1a399cc..3407444b1 100644 --- a/data/conf/rspamd/dynmaps/settings.php +++ b/data/conf/rspamd/dynmaps/settings.php @@ -15,14 +15,15 @@ $opt = [ PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_EMULATE_PREPARES => false, ]; -$pdo = new PDO($dsn, $database_user, $database_pass, $opt); try { + $pdo = new PDO($dsn, $database_user, $database_pass, $opt); $stmt = $pdo->query("SELECT * FROM `filterconf`"); } catch (PDOException $e) { echo 'settings { }'; exit; } + ?> settings {