From ef133b2329fdadcf5d148abfa01c505b3b8a8c6c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 24 Apr 2020 16:32:09 +0800 Subject: [PATCH] better checking on hash --- MTrackWeb/Browse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MTrackWeb/Browse.php b/MTrackWeb/Browse.php index fe85912b..ac29c994 100644 --- a/MTrackWeb/Browse.php +++ b/MTrackWeb/Browse.php @@ -381,7 +381,7 @@ class MTrackWeb_Browse extends MTrackWeb foreach($revs as $hash => $sobject) { $event = $impl->commitLogToEvent($sobject); // add something??? - if (isset($map[$hash])) { + if (isset($map[$hash]) && is_object($map[$hash])) { $event->is_dir = $map[$hash]->is_dir; $event->name = $map[$hash]->name; $event->basename = $map[$hash]->basename; -- 2.39.2