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:
@@ -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));
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user