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)