X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fchanges%2FRecentChange.php;h=1d590d9c36a076fea4e2da09345a3c1f543da6e7;hb=824469f51cc1c159130bd4eddcf98cbf528798b6;hp=c3b472845e949a2c8cf9eab78b760485a0659179;hpb=4334e1cc02b9749e92c514bd2aa46b347010f913;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php index c3b472845e..1d590d9c36 100644 --- a/includes/changes/RecentChange.php +++ b/includes/changes/RecentChange.php @@ -90,16 +90,17 @@ class RecentChange implements Taggable { */ const SEND_FEED = false; + /** @var array */ public $mAttribs = []; public $mExtra = []; /** - * @var Title + * @var Title|false */ public $mTitle = false; /** - * @var User + * @var User|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 - $strictIPs = in_array( $dbw->getType(), [ 'oracle', 'postgres' ] ); // legacy + $strictIPs = $dbw->getType() === 'postgres'; // legacy if ( $strictIPs && $this->mAttribs['rc_ip'] == '' ) { unset( $this->mAttribs['rc_ip'] ); }