From 5c34a2c361e88c636035e52cbcd33a4e30e251db Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 26 Oct 2012 15:01:01 -0700 Subject: [PATCH] Avoid duplicate "null" change journal entries. Change-Id: Ie5625963d4755b7aa7b3ecf3aaca0eb9e9e22cf5 --- includes/filebackend/FileOp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filebackend/FileOp.php b/includes/filebackend/FileOp.php index 7c43c48908..3c33f24af9 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, -- 2.20.1