mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Couldn't edit comments from plugins if ID and plugin table were named differently
This commit is contained in:
@@ -366,7 +366,7 @@ elseif ($action == 'comment')
|
|||||||
$e_comment = $cobj->get_e_comment();
|
$e_comment = $cobj->get_e_comment();
|
||||||
if ($table == $e_comment[$table]['eplug_comment_ids'])
|
if ($table == $e_comment[$table]['eplug_comment_ids'])
|
||||||
{
|
{
|
||||||
if ($sql->db_Select($table,$e_comment[$table]['db_title'],$e_comment[$table]['db_id']."={$id} "))
|
if ($sql->db_Select($e_comment[$table]['db_table'],$e_comment[$table]['db_title'],$e_comment[$table]['db_id']."={$id} "))
|
||||||
{
|
{
|
||||||
$row = $sql->db_Fetch();
|
$row = $sql->db_Fetch();
|
||||||
$subject = $row[$e_comment[$table]['db_title']];
|
$subject = $row[$e_comment[$table]['db_title']];
|
||||||
|
Reference in New Issue
Block a user