1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Couldn't edit comments from plugins if ID and plugin table were named differently

This commit is contained in:
e107steved
2011-05-04 21:35:14 +00:00
parent 5afeed3353
commit 5e4c9c4bb9

View File

@@ -366,7 +366,7 @@ elseif ($action == 'comment')
$e_comment = $cobj->get_e_comment();
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();
$subject = $row[$e_comment[$table]['db_title']];