Fix regression where slony menu is always shown. REL_5-0
authorJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Mon, 26 Mar 2012 08:05:28 +0000 (10:05 +0200)
committerJehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
Mon, 26 Mar 2012 08:05:28 +0000 (10:05 +0200)
Regression from patch 36cdb2e40b34a2ca9e2e74db5748f8170f029aad "Fix a
small PHP warning when Slony conf parameters are not set".

libraries/lib.inc.php

index f6db0e26c7043c326ec9e70c7c8165d5e589875f..808b780337b11675912aa0983e8b0f4ea233e8f5 100644 (file)
 
 
                // 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();
                }