fixed array concatenation
[lhc/web/wiklou.git] / maintenance / dumpHTML.inc
index be9f4b4..6025802 100644 (file)
@@ -144,8 +144,8 @@ class DumpHTML {
                $i = 0;
                for ( $hash = 0; $hash < 256; $hash++ ) {                               
                        $dir = sprintf( "%01x/%02x", intval( $hash / 16 ), $hash );
-                       $paths = glob( "{$this->sharedStaticPath}/$dir/*" );
-                       $paths += glob( "{$this->sharedStaticPath}/thumb/$dir/*" );
+                       $paths = array_merge( glob( "{$this->sharedStaticPath}/$dir/*" ),
+                               glob( "{$this->sharedStaticPath}/thumb/$dir/*" ) );
 
                        foreach ( $paths as $path ) {
                                $file = basename( $path );