mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 05:18:42 +00:00
Empty values fixes
This commit is contained in:
parent
62f0a8da09
commit
96e59b8265
|
|
@ -854,8 +854,8 @@ class Repository
|
|||
$date = substr($lines[2], 6);
|
||||
|
||||
$commit = new Commit($matches[0]);
|
||||
$commit->setAuthor(new Author(trim($author[0]), rtrim($author[1], '>')));
|
||||
$commit->setDate(new \DateTime(trim($date)));
|
||||
$commit->setAuthor(new Author(trim($author[0] ?? ''), rtrim($author[1] ?? '', '>')));
|
||||
$commit->setDate(new \DateTime(trim($date ?? 'now')));
|
||||
$commit->setMessage($lines[3]);
|
||||
$commit->setTag(new Tag());
|
||||
$commit->setRepository($this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user