Commit: 6e0acc2e2a45052e6b1a7483545ef2cd93235227
Author: Nate Abele | Date: 2010-09-20 19:33:18 -0400
diff --git a/config/bootstrap.php b/config/bootstrap.php
index 17fe843..730af74 100644
--- a/config/bootstrap.php
+++ b/config/bootstrap.php
@@ -23,7 +23,8 @@ use \lithium\core\Libraries;
use \lithium\net\http\Media;
Dispatcher::applyFilter('_callable', function($self, $params, $chain) {
- list($plugin, $asset) = explode('/', $params['request']->url, 2) + array("", "");
+ list($plugin, $asset) = explode('/', ltrim($params['request']->url, '/'), 2) + array("", "");
+
if ($asset && ($library = Libraries::get($plugin)) && isset($library['path'])) {
$asset = "{$library['path']}/webroot/{$asset}";
diff --git a/views/elements/nav.html.php b/views/elements/nav.html.php
index 7556405..d9126ac 100644
--- a/views/elements/nav.html.php
+++ b/views/elements/nav.html.php
@@ -1,3 +1,6 @@
+<?php if (!isset($object) || !$object) {
+ return;
+} ?>
<ul class="crumbs">
<?php foreach ($this->docs->crumbs($object) as $crumb): ?>
<li class="<?= $crumb['class']; ?>">