issue #107: removing SERVER_SOFTWARE check from is_cli function to make it compatible with synology

This commit is contained in:
Pepijn Over 2014-07-28 08:47:08 +02:00
parent 4a09d9ec22
commit 1400d65202
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ not yet released
* #86: Different design styles on status page (list, table).
* #103: Added Russian translation.
* #105: Fixing check for websites with unverified SSL certificates.
* #107: Fixing update job for Synology DSM Task Scheduler.
* Support for Danish SMS provider Smsit <http://www.smsit.dk/>
* Composer added for dependencies.

View File

@ -525,7 +525,7 @@ function psm_POST($key, $alt = null) {
* @return boolean
*/
function psm_is_cli() {
return (!isset($_SERVER['SERVER_SOFTWARE']) && (php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0)));
return (php_sapi_name() == 'cli' || (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0));
}
###############################################