Skip to content

Commit

Permalink
Fix path generation for non-content pages that don't have node_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Caiger committed Oct 25, 2017
1 parent 6abdced commit 9a0b01b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/xrowgpt.php
Expand Up @@ -41,9 +41,10 @@ public static function checkDisplayStatus()
$moduleResult = $tpl->variable('module_result');
foreach ( $moduleResult["path"] as $element )
{
$path[] = $element["node_id"];
if (isset($element['node_id'])) {
$path[] = $element['node_id'];
}
}

}
else if ( isset( $tpl->Variables[""]["node"] ) )
{
Expand Down

0 comments on commit 9a0b01b

Please sign in to comment.