Commit: 1a227898df253c37444806805fe49456f0ebf731
Author: Nate Abele | Date: 2010-03-08 11:59:06 -0500
diff --git a/controllers/BrowserController.php b/controllers/BrowserController.php
index 46f5c22..282b20e 100644
--- 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 2a2f663..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 "<span>{$h($crumb['title'])}</span>";
- }
- ?>
+ <?php
+ if ($crumb['url']) {
+ echo $this->html->link($crumb['title'], $crumb['url']);
+ continue;
+ }
+ ?>
+ <span><?=$crumb['title']; ?></span>
</li>
<?php endforeach; ?>
</ul>