From 551e97bebc14c2c521c0d3b2dc4162b39fe5926f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 27 Oct 2008 19:59:54 +0000 Subject: [PATCH] rc_deleted must be given; not secure otherwise --- includes/RecentChange.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 125c5d590b..030db5c70f 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -521,7 +521,8 @@ class RecentChange # Initialises the members of this object from a mysql row object public function loadFromRow( $row ) { $this->mAttribs = get_object_vars( $row ); - $this->mAttribs["rc_timestamp"] = wfTimestamp(TS_MW, $this->mAttribs["rc_timestamp"]); + $this->mAttribs['rc_timestamp'] = wfTimestamp(TS_MW, $this->mAttribs['rc_timestamp']); + $this->mAttribs['rc_deleted'] = $row->rc_deleted; // MUST be set $this->mExtra = array(); } @@ -553,8 +554,7 @@ class RecentChange 'rc_log_type' => isset($row->rc_log_type) ? $row->rc_log_type : null, 'rc_log_action' => isset($row->rc_log_action) ? $row->rc_log_action : null, 'rc_log_id' => isset($row->rc_log_id) ? $row->rc_log_id: 0, - // this one REALLY should be set... - 'rc_deleted' => isset($row->rc_deleted) ? $row->rc_deleted: 0, + 'rc_deleted' => $row->rc_deleted // MUST be set ); $this->mExtra = array(); } -- 2.20.1