From 0b7de9a025c84ec9c184ce0d8f91a0d8eef08861 Mon Sep 17 00:00:00 2001 From: "Jehan-Guillaume (ioguix) de Rorthais" Date: Mon, 26 Mar 2012 10:05:28 +0200 Subject: [PATCH] Fix regression where slony menu is always shown. Regression from patch 36cdb2e40b34a2ca9e2e74db5748f8170f029aad "Fix a small PHP warning when Slony conf parameters are not set". --- libraries/lib.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/lib.inc.php b/libraries/lib.inc.php index 7e2d1c22..5d7ed5b5 100644 --- a/libraries/lib.inc.php +++ b/libraries/lib.inc.php @@ -220,7 +220,7 @@ } // Load Slony if required - if (isset($_server_info['slony_support'])) { + if (isset($_server_info['slony_support']) && $_server_info['slony_support']) { include('./classes/plugins/Slony.php'); $slony = new Slony(); } -- 2.39.5