From: Aaron Schulz Date: Mon, 27 Oct 2008 19:59:54 +0000 (+0000) Subject: rc_deleted must be given; not secure otherwise X-Git-Tag: 1.31.0-rc.0~44556 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=551e97bebc14c2c521c0d3b2dc4162b39fe5926f;p=lhc%2Fweb%2Fwiklou.git rc_deleted must be given; not secure otherwise --- 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(); }