Skip to content

Commit

Permalink
Initialize the positions to 0 when empty
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jun 11, 2015
1 parent bd911c8 commit 57d68d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/navigation/NavigationTree.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ private function _buildPath()
*/
private function _buildPathPart($path, $type2, $pos2, $type3, $pos3)
{
if (empty($pos2)) {
$pos2 = 0;
}
if (empty($pos3)) {
$pos3 = 0;
}

$retval = true;
if (count($path) <= 1) {
return $retval;
Expand Down

0 comments on commit 57d68d5

Please sign in to comment.