vtiger-crm/vtigercrm — pull request #6 by ahoehne (2014-09-18 13:17:28+00:00)
Title: vtigercron.php patch for some servers

PHP_SAPI is no 100% secure way to find out if the script is started from shell.
Added a $_SERVER['SHELL'] check