From 10228b8f6494b0a1c4fdf456234cb3857f5e0a0c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 10 May 2006 00:53:37 +0000 Subject: [PATCH] r809: - Fix a parse error - Enable bugids --- includes/class_logging.php | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/includes/class_logging.php b/includes/class_logging.php index cb50017..29137d8 100644 --- a/includes/class_logging.php +++ b/includes/class_logging.php @@ -33,6 +33,13 @@ */ class Logging { + /** + * Bug ID + * @var integer + * @access private + */ + var $bugid = 0; + /** * The original data to compare against * @var array @@ -43,10 +50,23 @@ class Logging /** * Modified data * @var array - * @access public + * @access private */ var $modified = array(); + // ################################################################### + /** + * Sets the bug ID for the current logging instance + * + * @access public + * + * @param integer New bug ID + */ + function set_bugid($newbugid) + { + $this->bugid = $newbugid; + } + // ################################################################### /** * Assigns data into the $this->original or $this->modified array based @@ -73,7 +93,7 @@ class Logging $fname = $fdisplay; } - $this->$array["$element"]["$prefix$fdisplay"] = $data["$fname"]; + $this->{$array}["$element"]["$prefix$fdisplay"] = $data["$fname"]; } } } -- 2.22.5