Fix warnings on recent changes page

This commit is contained in:
Starbeamrainbowlabs 2017-05-20 15:05:25 +01:00
parent 06ddf4c454
commit 4c57ae8c37
4 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@
### Fixed ### Fixed
- Fixed error image generation in the image previewer under certain conditions. - Fixed error image generation in the image previewer under certain conditions.
- Fixed warnings from being spewed all over the place under cirtain circumstances on the recent changes page
## v0.13 ## v0.13
(No changes were made between the last beta release and this release) (No changes were made between the last beta release and this release)

View File

@ -2852,7 +2852,7 @@ function render_recent_change($rchange)
$timeDisplayHtml = render_timestamp($rchange->timestamp); $timeDisplayHtml = render_timestamp($rchange->timestamp);
$revisionId = false; $revisionId = false;
if(isset($pageindex->{$rchange->page})) if(isset($pageindex->{$rchange->page}) && isset($pageindex->{$rchange->page}->history))
{ {
foreach($pageindex->{$rchange->page}->history as $historyEntry) foreach($pageindex->{$rchange->page}->history as $historyEntry)
{ {

View File

@ -77,7 +77,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds recent changes. Access through the 'recent-changes' action.", "description": "Adds recent changes. Access through the 'recent-changes' action.",
"id": "feature-recent-changes", "id": "feature-recent-changes",
"lastupdate": 1486893286, "lastupdate": 1495289037,
"optional": false "optional": false
}, },
{ {

View File

@ -200,7 +200,7 @@ function render_recent_change($rchange)
$timeDisplayHtml = render_timestamp($rchange->timestamp); $timeDisplayHtml = render_timestamp($rchange->timestamp);
$revisionId = false; $revisionId = false;
if(isset($pageindex->{$rchange->page})) if(isset($pageindex->{$rchange->page}) && isset($pageindex->{$rchange->page}->history))
{ {
foreach($pageindex->{$rchange->page}->history as $historyEntry) foreach($pageindex->{$rchange->page}->history as $historyEntry)
{ {