1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Fixes fatal errors

This commit is contained in:
Moc
2013-04-19 15:42:41 +02:00
parent 456076fe43
commit c1393a3569
2 changed files with 4 additions and 4 deletions

View File

@@ -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));

View File

@@ -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)