From 82dea84a496ca8311f00253085d2a51ec25cce08 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 1 Jun 2005 14:53:01 +0000 Subject: [PATCH] r225: Only insert custom fields if we have fields to insert into. --- includes/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index 505b3c0..b89913e 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -450,6 +450,11 @@ function process_custom_fields($bugid, $inputdata = array()) return $errorlist; } + if (count($fieldbuild) < 1) + { + return; + } + $bugsys->db->query("REPLACE INTO " . TABLE_PREFIX . "bugvaluefill (bugid, " . implode(', ', $fieldbuild) . ") VALUES ($bugid, " . implode(', ', $fieldvalue) . ")"); } -- 2.22.5