projects
/
phpgitweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reactivated project (dev: http://git-dev.pk910.de)
[phpgitweb.git]
/
htdocs
/
lib
/
ProjectLoader.class.php
diff --git
a/htdocs/lib/ProjectLoader.class.php
b/htdocs/lib/ProjectLoader.class.php
index 332a6e4809d40a9a54e328334bca5d05502d99fb..0e2cfdfda327aff938db63ecb64cd4a7639b846c 100644
(file)
--- a/
htdocs/lib/ProjectLoader.class.php
+++ b/
htdocs/lib/ProjectLoader.class.php
@@
-23,7
+23,7
@@
class ProjectLoader {
$this->projects = array();
if(GitConfig::PROJECT_LIST) {
foreach(file(GitConfig::PROJECT_LIST) as $entry) {
$this->projects = array();
if(GitConfig::PROJECT_LIST) {
foreach(file(GitConfig::PROJECT_LIST) as $entry) {
- $entry = explode(" ",
$entry
);
+ $entry = explode(" ",
str_replace(array("\r", "\n"), array("", ""), $entry)
);
if($load_details) {
//check if project really exists
if($load_details) {
//check if project really exists
@@
-33,7
+33,8
@@
class ProjectLoader {
} else
$project['name'] = $entry[0];
} else
$project['name'] = $entry[0];
- $project['owner'] = $entry[1];
+ if(count($entry) > 1)
+ $project['owner'] = $entry[1];
$this->projects[] = $project;
}
} else {
$this->projects[] = $project;
}
} else {
@@
-69,7
+70,8
@@
class ProjectLoader {
if(strtolower($p['name']) == strtolower($name)) {
$found = true;
$project['name'] = $p['name'];
if(strtolower($p['name']) == strtolower($name)) {
$found = true;
$project['name'] = $p['name'];
- $project['owner'] = $p['owner'];
+ if(isset($p['owner']))
+ $project['owner'] = $p['owner'];
break;
}
}
break;
}
}