mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Validate fixes (#13935)
* Fix version check abort when something goes wrong * more generic message when failing to parse ajax
This commit is contained in:
@@ -67,7 +67,7 @@ class Version
|
||||
public function localCommit(): array
|
||||
{
|
||||
if ($this->is_git_install) {
|
||||
[$local_sha, $local_date] = explode('|', rtrim(`git show --pretty='%H|%ct' -s HEAD`));
|
||||
[$local_sha, $local_date] = array_pad(explode('|', rtrim(`git show --pretty='%H|%ct' -s HEAD`), 2), 2, '');
|
||||
|
||||
return [
|
||||
'sha' => $local_sha,
|
||||
|
Reference in New Issue
Block a user