Commit: 3a1c87c2a7a29a94beaa7578d4f3a931c372be06
Author: Nate Abele | Date: 2010-03-08 11:59:06 -0500
diff --git a/controllers/BrowserController.php b/controllers/BrowserController.php
index 4e7eb8d..0965e94 100755
--- a/controllers/BrowserController.php
+++ b/controllers/BrowserController.php
@@ -166,6 +166,7 @@ class BrowserController extends \lithium\action\Controller {
if (isset($object['info']['tags']['var'])) {
$object['type'] = $object['info']['tags']['var'];
}
+ $object['info'] += array('description' => '');
if ($object['info']['description']) {
$object['info']['description'] = $this->_embed($object['info']['description']);
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php
index 5af409e..7a52fbe 100644
--- a/views/layouts/default.html.php
+++ b/views/layouts/default.html.php
@@ -23,13 +23,13 @@
<ul class="crumbs">
<?php foreach (isset($crumbs) ? $crumbs : array() as $crumb): ?>
<li class="<?= $crumb['class'];?>">
- <?php
- if ($crumb['url']) {
- echo $this->html->link($crumb['title'], $crumb['url']);
- } else {
- echo $this->html->tag('span', $crumb['title']);
- }
- ?>
+ <?php
+ if ($crumb['url']) {
+ echo $this->html->link($crumb['title'], $crumb['url']);
+ continue;
+ }
+ ?>
+ <span><?=$crumb['title']; ?></span>
</li>
<?php endforeach; ?>
</ul>