diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8c5ec9b7..20588757 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 * Composer added for dependencies. diff --git a/src/includes/functions.inc.php b/src/includes/functions.inc.php index 4f5a2b2d..84a0eb21 100644 --- a/src/includes/functions.inc.php +++ b/src/includes/functions.inc.php @@ -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)); } ###############################################