X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhistoryblob%2FDiffHistoryBlob.php;h=5173916b9ba52f528f668089f906476af0a200bb;hb=825d66bfa44c5dae2b78e2fe4f3b16f16aff4a12;hp=8d92fe531270afe2d107fcd6818f5f0ed1e812e1;hpb=3353ced6cd3148de1549568ee9633a913fd5faab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/historyblob/DiffHistoryBlob.php b/includes/historyblob/DiffHistoryBlob.php index 8d92fe5312..5173916b9b 100644 --- a/includes/historyblob/DiffHistoryBlob.php +++ b/includes/historyblob/DiffHistoryBlob.php @@ -155,14 +155,13 @@ class DiffHistoryBlob implements HistoryBlob { $seqName = 'main'; } } - $seq =& $sequences[$seqName]; - $tail = $seq['tail']; + + $tail = $sequences[$seqName]['tail']; $diff = $this->diff( $tail, $text ); - $seq['diffs'][] = $diff; - $seq['map'][] = $i; - $seq['tail'] = $text; + $sequences[$seqName]['diffs'][] = $diff; + $sequences[$seqName]['map'][] = $i; + $sequences[$seqName]['tail'] = $text; } - unset( $seq ); // unlink dangerous alias // Knit the sequences together $tail = ''; @@ -333,7 +332,7 @@ class DiffHistoryBlob implements HistoryBlob { // addItem() doesn't work if mItems is partially filled from mDiffs $this->mFrozen = true; $info = unserialize( gzinflate( $this->mCompressed ) ); - unset( $this->mCompressed ); + $this->mCompressed = null; if ( !$info ) { // Empty object