croxton/Stash — pull request #47 by Filipvds (2013-04-15 06:49:58+00:00)
Title: Check if HTTP_USER_AGENT is set.

In some circumstances the HTTP_USER_AGENT server variable is not set (CLI execution) which resulted in a PHP notice. By setting $bot_test to 'cli' or 'other', we have more possibilities to fine-tune the bot control.