From 4b552b71d3454ba4d0f501ff5ac1c6a8c220fd63 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 15 Jan 2006 08:19:24 +0000 Subject: [PATCH] r721: Unwanted and unwonted conversions --- attachment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attachment.php b/attachment.php index 296cabe..91bd790 100755 --- a/attachment.php +++ b/attachment.php @@ -26,14 +26,14 @@ if (isset($bugsys->in['attachmentid'])) $attachment = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "attachment WHERE attachmentid = " . intval($bugsys->in['attachmentid'])); if (!$attachment) { - $message->items[] = $lang->getlex('error_invalid_id'); + $message->error($lang->getlex('error_invalid_id')); } } $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . (($attachment['attachmentid']) ? $attachment['bugid'] : intval($bugsys->in['bugid']))); if (!$bug) { - $message->items[] = $lang->getlex('error_invalid_id'); + $message->error($lang->getlex('error_invalid_id')); } // setup logging -- 2.22.5