From 89e4329a8068e3631d3f64f6896fa3907c687cf5 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 08 Jan 2015 09:08:50 -0500 Subject: [PATCH] Layout fix: tab toggle and monitor tables --- server/plugins-available/mongo_clientdb_plugin.inc.php | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/plugins-available/mongo_clientdb_plugin.inc.php b/server/plugins-available/mongo_clientdb_plugin.inc.php index cfec931..2f38112 100644 --- a/server/plugins-available/mongo_clientdb_plugin.inc.php +++ b/server/plugins-available/mongo_clientdb_plugin.inc.php @@ -51,8 +51,12 @@ */ function onInstall() { global $conf; - - return (bool) $conf['services']['db']; + + if($conf['services']['db'] == true && class_exists('MongoClient')) { + return true; + } else { + return false; + } } -- Gitblit v1.9.1