Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-39824: theme_bootstrap: initalise array before use

This causes warnings when no navigation items are returned.

Also fixed some bad whitespace.
  • Loading branch information...
commit 30703dc8f24b1d98d9c6a5b47fa3b7929ebb57c2 1 parent 33beb96
Dan Poltawski danpoltawski authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  theme/bootstrapbase/renderers/core_renderer.php
3  theme/bootstrapbase/renderers/core_renderer.php
@@ -53,9 +53,10 @@ public function notification($message, $classes = 'notifyproblem') {
53 53 */
54 54 public function navbar() {
55 55 $items = $this->page->navbar->get_items();
  56 + $breadcrumbs = array();
56 57 foreach ($items as $item) {
57 58 $item->hideicon = true;
58   - $breadcrumbs[] = $this->render($item);
  59 + $breadcrumbs[] = $this->render($item);
59 60 }
60 61 $divider = '<span class="divider">/</span>';
61 62 $list_items = '<li>'.join(" $divider</li><li>", $breadcrumbs).'</li>';

0 comments on commit 30703dc

Please sign in to comment.
Something went wrong with that request. Please try again.