alexbilbie/codeigniter-mongodb-library — pull request #71 by chemicaloliver (2012-07-22 13:05:28+00:00)
Title: Fixed connect showing username and password on connect failure

Even when mongo_suppress_connect_error=TRUE the username and password was being shown because the incorrect command was being used to test mongo_suppress_connect_error.

Testing $this->_config_data['mongo_suppress_connect_error'] rather than ($this->_ci && $this->_ci->config->item('mongo_suppress_connect_error')) fixes this.