projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48cb4f1
)
check object exists
author
Alan Knowles
<alan@roojs.com>
Fri, 24 Apr 2020 08:31:20 +0000
(16:31 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 24 Apr 2020 08:31:20 +0000
(16:31 +0800)
MTrackWeb/Browse.php
patch
|
blob
|
history
diff --git
a/MTrackWeb/Browse.php
b/MTrackWeb/Browse.php
index
34d0c73
..
fe85912
100644
(file)
--- a/
MTrackWeb/Browse.php
+++ b/
MTrackWeb/Browse.php
@@
-380,10
+380,12
@@
class MTrackWeb_Browse extends MTrackWeb
foreach($revs as $hash => $sobject) {
$event = $impl->commitLogToEvent($sobject);
foreach($revs as $hash => $sobject) {
$event = $impl->commitLogToEvent($sobject);
- // add something???
- $event->is_dir = $map[$hash]->is_dir;
- $event->name = $map[$hash]->name;
- $event->basename = $map[$hash]->basename;
+ // add something???
+ if (isset($map[$hash])) {
+ $event->is_dir = $map[$hash]->is_dir;
+ $event->name = $map[$hash]->name;
+ $event->basename = $map[$hash]->basename;
+ }
$map[$hash] = $event; // this was previous only done for directories??? why???
}
return array_values($map);
$map[$hash] = $event; // this was previous only done for directories??? why???
}
return array_values($map);