From: Jehan-Guillaume (ioguix) de Rorthais Date: Mon, 26 Mar 2012 08:05:28 +0000 (+0200) Subject: Fix regression where slony menu is always shown. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=fa8edc2d0afa8bdcca83d9f99eeaf9a667141de1;p=phppgadmin.git Fix regression where slony menu is always shown. Regression from patch 36cdb2e40b34a2ca9e2e74db5748f8170f029aad "Fix a small PHP warning when Slony conf parameters are not set". --- diff --git a/libraries/lib.inc.php b/libraries/lib.inc.php index f6db0e26..808b7803 100644 --- a/libraries/lib.inc.php +++ b/libraries/lib.inc.php @@ -249,7 +249,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(); }