aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-07-03 22:59:32 +0000
committerplegall <plg@piwigo.org>2009-07-03 22:59:32 +0000
commit153c32e8ff033b58a6c57fdf0187312cbb018445 (patch)
treebc8fce46b774172284102735dddc0f118b1b23c8
parentc64b8adc63625976339dc7448ff2edd76b400cfb (diff)
bug 1043 fixed: avoid warning when merging chunks. This warning was preventing
the PwgError to work correctly and the error code was not transmitted. git-svn-id: http://piwigo.org/svn/branches/2.0@3513 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 979e855ef..8f7fdb9e2 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -962,6 +962,8 @@ function merge_chunks($output_filepath, $original_sum, $type)
sort($chunks);
ws_logfile('[merge_chunks] memory_get_usage before loading chunks: '.memory_get_usage());
+
+ $i = 0;
foreach ($chunks as $chunk)
{