removed database settings from git; ignored it.
fixed error when glob is returning false because of empty result

From the php manual: http://www.php.net/manual/en/function.glob.php
<cite>
Returns an array containing the matched files/directories, an empty array if no file
matched or FALSE on error.

Note:
On some systems it is impossible to distinguish between empty match and an error.
</cite>