dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "rest: Use ParamValidator library, add BodyValidator"
[lhc/web/wiklou.git]
/
includes
/
changes
/
RecentChange.php
diff --git
a/includes/changes/RecentChange.php
b/includes/changes/RecentChange.php
index
c3b4728
..
1d590d9
100644
(file)
--- a/
includes/changes/RecentChange.php
+++ b/
includes/changes/RecentChange.php
@@
-90,16
+90,17
@@
class RecentChange implements Taggable {
*/
const SEND_FEED = false;
*/
const SEND_FEED = false;
+ /** @var array */
public $mAttribs = [];
public $mExtra = [];
/**
public $mAttribs = [];
public $mExtra = [];
/**
- * @var Title
+ * @var Title
|false
*/
public $mTitle = false;
/**
*/
public $mTitle = false;
/**
- * @var User
+ * @var User
|false
*/
private $mPerformer = false;
*/
private $mPerformer = false;
@@
-391,7
+392,7
@@
class RecentChange implements Taggable {
}
# If our database is strict about IP addresses, use NULL instead of an empty string
}
# If our database is strict about IP addresses, use NULL instead of an empty string
- $strictIPs =
in_array( $dbw->getType(), [ 'oracle', 'postgres' ] )
; // legacy
+ $strictIPs =
$dbw->getType() === 'postgres'
; // legacy
if ( $strictIPs && $this->mAttribs['rc_ip'] == '' ) {
unset( $this->mAttribs['rc_ip'] );
}
if ( $strictIPs && $this->mAttribs['rc_ip'] == '' ) {
unset( $this->mAttribs['rc_ip'] );
}