Skip to content

Commit

Permalink
Fix for #54 issue - Call to a member function path() on a non-object
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Aug 19, 2015
1 parent 2d3ef8b commit d773a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ protected function getPage($path)
return null;
}

$ppath = dirname($path);
$ppath = str_replace('\\', '/' , dirname($path));

// Find or create parent(s).
$parent = $this->getPage($ppath != '/' ? $ppath : '');
Expand Down

0 comments on commit d773a87

Please sign in to comment.