Index: branches/version-2/data/class/util/GC_Utils.php
===================================================================
--- branches/version-2/data/class/util/GC_Utils.php	(revision 17439)
+++ branches/version-2/data/class/util/GC_Utils.php	(revision 17530)
@@ -186,17 +186,17 @@
                 if(is_array($arrFile)) {
                     // ソートを行う
-                    $arrLog = natcasesort($arrFile);
-                    
+                    natcasesort($arrFile);
+
                     // ファイルログが最大個数なら以上なら古いファイルから削除する
-                    $count = count($arrLog);
+                    $count = count($arrFile);
                     if($count >= $max_log) {
                         $diff = $count - $max_log;
                         for($i = 0; $diff >= $i ; $i++) {
-                            unlink($dirname. "/" .array_pop($arrLog));
+                            unlink($dirname . "/" . array_pop($arrFile));
                         }
                     }
-    
+
                     // ログファイルの添え字をずらす
-                    $count = count($arrLog);
+                    $count = count($arrFile);
                     for($i = $count; 1 <= $i; $i--) {
                         $move_number = $i + 1;
@@ -204,5 +204,5 @@
                             unlink("$path.$move_number");
                         }
-                        copy("$dirname/" . $arrLog[$i - 1], "$path.$move_number");
+                        copy("$dirname/" . $arrFile[$i - 1], "$path.$move_number");
                     }
                 }
@@ -218,5 +218,5 @@
         }
     }
-    
+
     /*----------------------------------------------------------------------
      * [名称] gfMakePassword
