aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend/FileOp.php
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2012-10-26 15:01:01 -0700
committerAaron Schulz <aschulz@wikimedia.org>2012-10-26 15:01:01 -0700
commit5c34a2c361e88c636035e52cbcd33a4e30e251db (patch)
tree5d168ddfb268af70578610745fcb565e1a65996d /includes/filebackend/FileOp.php
parent168afc0cebb5ca5671b9543e1ae7d74ca5170144 (diff)
downloadmediawikicore-5c34a2c361e88c636035e52cbcd33a4e30e251db.tar.gz
mediawikicore-5c34a2c361e88c636035e52cbcd33a4e30e251db.zip
Avoid duplicate "null" change journal entries.
Change-Id: Ie5625963d4755b7aa7b3ecf3aaca0eb9e9e22cf5
Diffstat (limited to 'includes/filebackend/FileOp.php')
-rw-r--r--includes/filebackend/FileOp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/filebackend/FileOp.php b/includes/filebackend/FileOp.php
index 7c43c4890813..3c33f24af9ac 100644
--- a/includes/filebackend/FileOp.php
+++ b/includes/filebackend/FileOp.php
@@ -179,7 +179,7 @@ abstract class FileOp {
$updateEntries = array();
$deleteEntries = array();
$pathsUsed = array_merge( $this->storagePathsRead(), $this->storagePathsChanged() );
- foreach ( $pathsUsed as $path ) {
+ foreach ( array_unique( $pathsUsed ) as $path ) {
$nullEntries[] = array( // assertion for recovery
'op' => 'null',
'path' => $path,