alexbilbie/codeigniter-mongodb-library — pull request #30 by robelkin (2011-12-09 15:45:34+00:00)
Title: Error catching in get()

I added a try/catch and error displaying around the call to getNext in the get method, to prevent a crash in the instance where the database was running in auth mode, but no authentication details are supplied.

This should catch other errors that come from the call to getNext(). In my situation, there are obviously other things to fix, but because of the nature of the crash, I was just getting a blank screen, so this is added to help with the error reporting to get people moving without having to debug all the way down the stack.