Skip to content
Snippets Groups Projects
Commit fa9c29e3 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#3205 - add check in mongodb plugin if MongoClient class exists before using it

parent e100328a
No related branches found
No related tags found
No related merge requests found
...@@ -51,8 +51,12 @@ class mongo_clientdb_plugin { ...@@ -51,8 +51,12 @@ class mongo_clientdb_plugin {
*/ */
function onInstall() { function onInstall() {
global $conf; global $conf;
return (bool) $conf['services']['db']; if($conf['services']['db'] == true && class_exists('MongoClient')) {
return true;
} else {
return false;
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment