webui: Fixed the display date for the current version (#6474)

* webui: Fixed the display date for the current version

* changed to use exec

* changed >> to >
This commit is contained in:
Neil Lathwood
2017-04-23 00:03:14 +01:00
committed by Tony Murray
parent 720177965b
commit 056ddbac05

View File

@ -1643,7 +1643,8 @@ function set_numeric($value, $default = 0)
function check_git_exists()
{
if (`which git`) {
exec('git > /dev/null 2>&1', $response, $exit_code);
if ($exit_code === 1) {
return true;
} else {
return false;