Skip to content

Commit 48ddae2

Browse files
author
florian030
committed
2 parents 9f60080 + fa9c29e commit 48ddae2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server/plugins-available/mongo_clientdb_plugin.inc.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ class mongo_clientdb_plugin {
5151
*/
5252
function onInstall() {
5353
global $conf;
54-
55-
return (bool) $conf['services']['db'];
54+
55+
if($conf['services']['db'] == true && class_exists('MongoClient')) {
56+
return true;
57+
} else {
58+
return false;
59+
}
5660
}
5761

5862

0 commit comments

Comments
 (0)