From fb40e074f103a955c069c3387de0b19a21f74e20 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 28 May 2006 19:21:12 +0000 Subject: [PATCH] r858: Fix a bug where logging would take place between '0' and '' --- includes/class_logging.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class_logging.php b/includes/class_logging.php index fa959c6..792c3ed 100644 --- a/includes/class_logging.php +++ b/includes/class_logging.php @@ -178,10 +178,10 @@ class Logging { $newfields = array_diff_assoc($this->modified, $this->original); $removedfields = array_diff_assoc($this->original, $this->modified); - + foreach ($this->modified AS $key => $value) { - if ($this->original["$key"] != $value) + if ($this->original["$key"] != $value AND !($value['value'] == '' AND $this->original["$key"]['value'] == '0') AND !($this->original["$key"]['value'] == '' AND $value['value'] == '0')) { $this->compared["$key"] = array('old' => $this->original["$key"]['value'], 'new' => $this->modified["$key"]['value']); } -- 2.22.5