diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-10-09 10:09:10 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-10-09 10:09:10 -0500 |
commit | 7a92594bc0b2985019559e85c7d6067c7e9cd1b1 (patch) | |
tree | 2e8bcd4971ef8e96251ff5182b3b7ead19801913 /phpBB | |
parent | 98a7ce23607ba1350f3d25f497243c3f7c9b4fea (diff) | |
download | forums-7a92594bc0b2985019559e85c7d6067c7e9cd1b1.tar forums-7a92594bc0b2985019559e85c7d6067c7e9cd1b1.tar.gz forums-7a92594bc0b2985019559e85c7d6067c7e9cd1b1.tar.bz2 forums-7a92594bc0b2985019559e85c7d6067c7e9cd1b1.tar.xz forums-7a92594bc0b2985019559e85c7d6067c7e9cd1b1.zip |
[ticket/11103] Fix the issue of time changing when editing items
PHPBB3-11103
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/notification/type/base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/notification/type/base.php b/phpBB/includes/notification/type/base.php index b72875fb85..a41a5a8ac3 100644 --- a/phpBB/includes/notification/type/base.php +++ b/phpBB/includes/notification/type/base.php @@ -82,7 +82,7 @@ abstract class phpbb_notification_type_base implements phpbb_notification_type_i public function __get($name) { - return $this->data[$name]; + return (!isset($this->data[$name])) ? null : $this->data[$name]; } public function __set($name, $value) @@ -202,6 +202,7 @@ abstract class phpbb_notification_type_base implements phpbb_notification_type_i // Unset data unique to each row unset( + $data['time'], // Also unsetting time, since it always tries to change the time to current (if you actually need to change the time, over-ride this function) $data['notification_id'], $data['unread'], $data['user_id'] |