Skip to content

Commit 5a4a5e0

Browse files
committed
Fix PHP warning
E_WARNING: Trying to access array offset on value of type bool ./inc/Ui/Recent.php(165)
1 parent 31afae8 commit 5a4a5e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Ui/Recent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function checkCurrentRevision(array &$info)
162162
}
163163
if (!$changelog->isCurrentRevision($info['date'])) {
164164
$currentRevInfo = $changelog->getCurrentRevisionInfo();
165-
if ($currentRevInfo['type'] == DOKU_CHANGE_TYPE_DELETE) {
165+
if ($currentRevInfo && $currentRevInfo['type'] == DOKU_CHANGE_TYPE_DELETE) {
166166
// the page or media file was externally deleted, updated info because the link is already red
167167
// externally created and edited not updated because sorting by date is not worth so much changes
168168
$info = array_merge($info, $currentRevInfo);

0 commit comments

Comments
 (0)