Fixed bug in getAllDocs(). $incDocs is always true, since isset returns true if a variable is false and a null value throws an exception.
Fixed bug in getAllDocs(). $incDocs is always true, since isset returns true if a variable is false and a null value throws an exception.

Also fixed a strict warning for using an empty variable as an object.(cherry picked from commit 0b7733d9ce8a9f5182e17852c5e06a730cc8ad76)

Not including the strict warning change. Not making the code uglier for the poor strict mode.

rwos/sag,rwos/sag,easybiblabs/sag,sbisbee/sag,easybiblabs/sag,sbisbee/sag