Skip to content

Commit

Permalink
Add fix for when the 'shell_exec' function doesn't exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Slump committed Feb 27, 2015
1 parent 50c9d9b commit 931f105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/CliMulti/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private static function shellExecFunctionIsDisabled()
$command = 'shell_exec';
$disabled = explode(',', ini_get('disable_functions'));
$disabled = array_map('trim', $disabled);
return in_array($command, $disabled);
return in_array($command, $disabled) || !function_exists($command);
}

private static function returnsSuccessCode($command)
Expand Down

0 comments on commit 931f105

Please sign in to comment.