Suppress a notice in case the git log line does not contain
a title (fixes issue 520)
This commit is contained in:
parent
abc8b8f4ab
commit
1548d4184e
@ -85,6 +85,8 @@ class IDF_Scm_Cache_Git extends Pluf_Model
|
|||||||
array($this->_project->id));
|
array($this->_project->id));
|
||||||
foreach (Pluf::factory(__CLASS__)->getList(array('filter' => $sql->gen())) as $blob) {
|
foreach (Pluf::factory(__CLASS__)->getList(array('filter' => $sql->gen())) as $blob) {
|
||||||
$tmp = explode(chr(31), $blob->content, 3);
|
$tmp = explode(chr(31), $blob->content, 3);
|
||||||
|
// sometimes the title might be empty
|
||||||
|
if (!isset($tmp[2])) $tmp[2] = '';
|
||||||
|
|
||||||
$res[$blob->githash] = (object) array(
|
$res[$blob->githash] = (object) array(
|
||||||
'hash' => $blob->githash,
|
'hash' => $blob->githash,
|
||||||
|
Loading…
Reference in New Issue
Block a user