issue #107: removing SERVER_SOFTWARE check from is_cli function to make it compatible with synology
parent
4a09d9ec22
commit
1400d65202
|
@ -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.
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
###############################################
|
||||
|
|
Loading…
Reference in New Issue