From 82286e9ec3362a4b0ee84c06d35873e2e1f55572 Mon Sep 17 00:00:00 2001 From: Jimako Date: Mon, 9 Dec 2024 16:40:14 +0100 Subject: [PATCH] #10 fix for db_Select() and not supported params anymore --- helpdesk3/includes/helpdesk_class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helpdesk3/includes/helpdesk_class.php b/helpdesk3/includes/helpdesk_class.php index 1825530..882b57f 100644 --- a/helpdesk3/includes/helpdesk_class.php +++ b/helpdesk3/includes/helpdesk_class.php @@ -978,8 +978,10 @@ function changed() if (!$helpdesk_obj->hdu_new && (USERID == $hdu_posterid || $helpdesk_obj->hduprefs_allread || $helpdesk_obj->hdu_super || $helpdesk_obj->hdu_technician)) { $hdu_retval .= $tp->parseTemplate($HDU_SHOWTICKET_COMMENT_HEADER, false, $hdu_shortcodes); - $sql->db_Select("hdu_comments", "*", "where hduc_ticketid='$hdu_showid' order by hduc_date asc", "nowhere", false); - while ($hducrow = $sql->db_Fetch()) + + $where = " hduc_ticketid='$hdu_showid' order by hduc_date asc"; + $hducrows = e107::getDb()->retrieve("hdu_comments", "*", $where, true); + foreach($hducrows AS $hducrow) { extract($hducrow); $hduc_poster = explode(".", $hduc_poster);