Update functions.php

This commit is contained in:
FusionPBX
2019-08-22 11:08:29 -06:00
committed by GitHub
parent 6e813908fc
commit 63484cbd71

View File

@@ -1629,7 +1629,7 @@ function number_pad($number,$n) {
if (defined('STDIN')) {
return true;
}
if (php_sapi_name() == 'cli' && !isset($_SERVER['HTTP_USER_AGENT']) && is_numeric($_SERVER['argc']) {
if (php_sapi_name() == 'cli' && !isset($_SERVER['HTTP_USER_AGENT']) && is_numeric($_SERVER['argc'])) {
return true;
}
return false;