From 7b6f88e3e45d39cc64a91665997f6d6c3ed5c284 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 15 May 2005 21:27:35 +0000 Subject: [PATCH] r156: FINALLY have the kinks worked out of log_action in regards to when to and when to not log --- includes/functions.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 3e350e7..1c0b8c7 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -302,11 +302,19 @@ function parse_pcv_select($input, $validate = false) } // ######################### Start log_action ######################## -function log_action($bugid, $language, $arguments, $field = '', $original = '', $changed = '', $logdiff = true) +function log_action($bugid, $language, $arguments, $ignoreblanks = false, $field = '', $original = '', $changed = '', $dodiff = true) { global $bugsys; - if ($logdiff OR (empty($original) AND empty($changed))) + if (empty($original) AND empty($changed)) + { + if (!$ignoreblanks) + { + return; + } + } + + if ($dodiff AND !$ignoreblanks) { if ($original === $changed) { -- 2.43.5