mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Check for exec function prior to attemping to use it
This commit is contained in:
parent
9a3ecf5f14
commit
cf46b8be6c
@ -184,6 +184,9 @@ class SystemHealth
|
||||
|
||||
private static function checkPhpCli()
|
||||
{
|
||||
if(!function_exists('exec'))
|
||||
return "Unable to check CLI version";
|
||||
|
||||
try {
|
||||
exec('php -v', $foo, $exitCode);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user