From 5e4c9c4bb91dfd05fcf755d6f0dcbeae64f74ac9 Mon Sep 17 00:00:00 2001 From: e107steved Date: Wed, 4 May 2011 21:35:14 +0000 Subject: [PATCH] Couldn't edit comments from plugins if ID and plugin table were named differently --- comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment.php b/comment.php index 2f3c113a5..e3b7eb82a 100644 --- a/comment.php +++ b/comment.php @@ -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']];