mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Issue #1373 - Reverted previous fix and used a different approach.
This commit is contained in:
parent
e7c088cf85
commit
bf46e608fe
@ -475,7 +475,7 @@ class e_pref extends e_front_model
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e107::getDb('pref')->select('core', 'e107_value', "e107_name='{$id}'"))
|
if (e107::getDb()->select('core', 'e107_value', "e107_name='{$id}'"))
|
||||||
{
|
{
|
||||||
$row = e107::getDb()->fetch();
|
$row = e107::getDb()->fetch();
|
||||||
|
|
||||||
|
@ -196,7 +196,9 @@ elseif ($action == 'forums')
|
|||||||
|
|
||||||
$debug = deftrue('e_DEBUG');
|
$debug = deftrue('e_DEBUG');
|
||||||
|
|
||||||
if (!$sql->gen($qry))
|
$sqlp = e107::getDb('posts');
|
||||||
|
|
||||||
|
if (!$sqlp->gen($qry))
|
||||||
{
|
{
|
||||||
$ftext .= "<span class='mediumtext'>".UP_LAN_8.'</span>';
|
$ftext .= "<span class='mediumtext'>".UP_LAN_8.'</span>';
|
||||||
}
|
}
|
||||||
@ -206,7 +208,7 @@ elseif ($action == 'forums')
|
|||||||
$vars = new e_vars();
|
$vars = new e_vars();
|
||||||
|
|
||||||
$userposts_forum_table_string = '';
|
$userposts_forum_table_string = '';
|
||||||
while($row = $sql->fetch())
|
while($row = $sqlp->fetch())
|
||||||
{
|
{
|
||||||
|
|
||||||
if(empty($row))
|
if(empty($row))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user