1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Fix another page list issue

This commit is contained in:
Starbeamrainbowlabs 2016-04-06 16:22:06 +01:00
parent bc33205e6b
commit db3b63ac9b
3 changed files with 5 additions and 3 deletions

View file

@ -3480,7 +3480,8 @@ function generate_page_list($pagelist)
}
$pageDisplayName = $pagename;
if($pageindex->$pagename->redirect)
if(isset($pageindex->$pagename) and
!empty($pageindex->$pagename->redirect))
$pageDisplayName = "<em>$pageDisplayName</em>";
$result .= "<li><a href='index.php?page=$pagename'>$pageDisplayName</a>

View file

@ -131,7 +131,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.",
"id": "page-list",
"lastupdate": 1458824815,
"lastupdate": 1459956112,
"optional": false
},
{

View file

@ -109,7 +109,8 @@ function generate_page_list($pagelist)
}
$pageDisplayName = $pagename;
if($pageindex->$pagename->redirect)
if(isset($pageindex->$pagename) and
!empty($pageindex->$pagename->redirect))
$pageDisplayName = "<em>$pageDisplayName</em>";
$result .= "<li><a href='index.php?page=$pagename'>$pageDisplayName</a>