From 28eb40111ae35070a0a5f300bdba52a894cf0d01 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 17 Feb 2010 04:03:43 +0000 Subject: [PATCH] navigation MDL-20204 Now checks an icon implements renderable interface before trying to pass it to OUTPUTs render method --- lib/navigationlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 2af544f0565..fe0818ca139 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -411,7 +411,7 @@ class navigation_node { $title = $this->title; } - if ($this->icon !== null) { + if ($this->icon instanceof renderable) { $icon = $OUTPUT->render($this->icon); $content = $icon.$content; // use CSS for spacing of icons } else if ($this->helpbutton !== null) {