From c1393a3569ee2dfb31bc466cd86a28e80bd1d989 Mon Sep 17 00:00:00 2001 From: Moc Date: Fri, 19 Apr 2013 15:42:41 +0200 Subject: [PATCH] Fixes fatal errors --- e107_plugins/chatbox_menu/e_list.php | 4 ++-- e107_plugins/forum/e_list.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/chatbox_menu/e_list.php b/e107_plugins/chatbox_menu/e_list.php index e7d14c726..e89b59f5b 100644 --- a/e107_plugins/chatbox_menu/e_list.php +++ b/e107_plugins/chatbox_menu/e_list.php @@ -37,13 +37,13 @@ class list_chatbox_menu $bullet = $this->parent->getBullet($this->parent->settings['icon']); - if(!$chatbox_posts = $this->parent->$sql->gen("SELECT * FROM #chatbox WHERE ".$qry)) + if(!$chatbox_posts = $this->parent->e107->sql->gen("SELECT * FROM #chatbox WHERE ".$qry)) { $list_data = LIST_CHATBOX_2; } else { - while($row = $this->parent->$sql->fetch()) + while($row = $this->parent->e107->sql->fetch()) { $cb_id = substr($row['cb_nick'] , 0, strpos($row['cb_nick'] , ".")); $cb_nick = substr($row['cb_nick'] , (strpos($row['cb_nick'] , ".")+1)); diff --git a/e107_plugins/forum/e_list.php b/e107_plugins/forum/e_list.php index 17eea0b34..c6184dd40 100644 --- a/e107_plugins/forum/e_list.php +++ b/e107_plugins/forum/e_list.php @@ -58,13 +58,13 @@ class list_forum } - if(!$results = $this->parent->sql->gen($qry)) + if(!$results = $this->parent->e107->sql->gen($qry)) { $list_data = LIST_FORUM_2; } else { - $forumArray = $this->parent->sql->db_getList(); + $forumArray = $this->parent->e107->sql->db_getList(); $path = e_PLUGIN."forum/"; foreach($forumArray as $forumInfo)