Skip to content

Commit

Permalink
Fixes matomo-org#6222 silent fail in front of shell_exec to prevent w…
Browse files Browse the repository at this point in the history
…arnings from breaking the archiver
  • Loading branch information
mattab committed Dec 1, 2014
1 parent 377522d commit fb26f67
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 @@ -216,7 +216,7 @@ private static function returnsSuccessCode($command)

private static function commandExists($command)
{
$result = shell_exec('which ' . escapeshellarg($command) . ' 2> /dev/null');
$result = @shell_exec('which ' . escapeshellarg($command) . ' 2> /dev/null');

return !empty($result);
}
Expand Down

0 comments on commit fb26f67

Please sign in to comment.