Merge pull request #10 from phantom94/patch-1
Fixed: No owner specified notices
--- a/include/git/projectlist/ProjectListFile.class.php
+++ b/include/git/projectlist/ProjectListFile.class.php
@@ -130,9 +130,11 @@
if (preg_match('/^([^\s]+)(\s.+)?$/', $line, $regs)) {
$data = array();
$data['project'] = $regs[1];
- $owner = trim($regs[2]);
- if (!empty($owner)) {
- $data['owner'] = $owner;
+ if (isset($regs[2])){
+ $owner = trim($regs[2]);
+ if (!empty($owner)) {
+ $data['owner'] = $owner;
+ }
}
$this->fileContents[] = $data;
}