set to empty string so it doesn't get mis-handled as a null

This commit is contained in:
friendica 2015-03-20 16:49:49 -07:00
parent 07f8e7049a
commit 96afe7bf42

View File

@ -56,6 +56,8 @@ function siteinfo_init(&$a) {
$commit = trim( @shell_exec('git log -1 --format="%h"'));
if(! get_config('system','hidden_tag_siteinfo'))
$tag = trim( @shell_exec('git describe --tags --abbrev=0'));
else
$tag = '';
}
if(! isset($commit) || strlen($commit) > 16)
$commit = '';