Ladsgroup has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/394432 )
Change subject: Unserialize compact diff when it's string not array ...................................................................... Unserialize compact diff when it's string not array Bug: T181760 Change-Id: Idac3c907944eee1b748e9d6c72de9111acccb6d2 --- M lib/includes/Changes/EntityChange.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/32/394432/1 diff --git a/lib/includes/Changes/EntityChange.php b/lib/includes/Changes/EntityChange.php index c10438b..41e4b59 100644 --- a/lib/includes/Changes/EntityChange.php +++ b/lib/includes/Changes/EntityChange.php @@ -374,7 +374,9 @@ $info['diff'] = $factory->newFromArray( $info['diff'] ); } - if ( isset( $info['compactDiff'] ) && is_array( $info['compactDiff'] ) && $info['compactDiff'] ) { + if ( isset( $info['compactDiff'] ) && is_string( $info['compactDiff'] ) && + $info['compactDiff'] + ) { $compactDiff = ( new EntityDiffChangedAspectsFactory() )->newFromEntityDiff( new Diff() ); -- To view, visit https://gerrit.wikimedia.org/r/394432 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idac3c907944eee1b748e9d6c72de9111acccb6d2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits