From e660f52724cff19cdb600a3f2112908b270c35ee Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 31 May 2005 02:47:07 +0000 Subject: [PATCH] r221: We need to select bug AS bug not just bug --- newcomment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newcomment.php b/newcomment.php index 055cd81..8f391fc 100644 --- a/newcomment.php +++ b/newcomment.php @@ -77,7 +77,7 @@ if ($_POST['do'] == 'insert') if ($_REQUEST['do'] == 'add') { - $bug = $db->query_first("SELECT bug.*, comment.comment FROM " . TABLE_PREFIX . "bug LEFT JOIN " . TABLE_PREFIX . "comment AS comment ON (bug.bugid = comment.bugid) WHERE bug.bugid = " . intval($bugsys->in['bugid'])); + $bug = $db->query_first("SELECT bug.*, comment.comment FROM " . TABLE_PREFIX . "bug AS bug LEFT JOIN " . TABLE_PREFIX . "comment AS comment ON (bug.bugid = comment.bugid) WHERE bug.bugid = " . intval($bugsys->in['bugid'])); if (!$bug) { $message->error('alert: bad bug'); -- 2.43.5