From 15865aa9074e8a3dff00046dcb89c2d1253b05d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=B3na=20Lore?= <lonalore@freemail.hu>
Date: Fri, 20 Feb 2015 08:17:23 +0100
Subject: [PATCH] Issue #901: chatbox_menu: PHP Fatal error: Call to a member
 function toHTML() on a non-object.

---
 e107_plugins/chatbox_menu/chatbox_menu.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/e107_plugins/chatbox_menu/chatbox_menu.php b/e107_plugins/chatbox_menu/chatbox_menu.php
index 8457c0a5f..1a4b184bc 100644
--- a/e107_plugins/chatbox_menu/chatbox_menu.php
+++ b/e107_plugins/chatbox_menu/chatbox_menu.php
@@ -76,6 +76,7 @@ if(!class_exists('chatbox_shortcodes'))
 			}
 			else
 			{
+				$tp = e107::getParser();
 				$cb_nick = $tp -> toHTML($cb_nick,FALSE,'USER_TITLE, emotes_off, no_make_clickable');
 				$cb_nick = str_replace("Anonymous", LAN_ANONYMOUS, $cb_nick);
 			}