Minor change in class.graphic.inc
[fa-stable.git] / includes / archive.inc
index d8316d39877150fb4f217498a6c615679e358a2f..696903f9b807ad091ecd7d2f2727c5f62aefd2af 100644 (file)
@@ -395,7 +395,8 @@ class tar_file extends archive
                                else if ($new = @fopen($file['name'], "wb"))
                                {
                                        fwrite($new, fread($fp, $file['stat'][7]));
-                                       fread($fp, (512 - $file['stat'][7] % 512) == 512 ? 0 : (512 - $file['stat'][7] % 512));
+                                       if ($file['stat'][7] % 512)
+                                               fread($fp, 512 - $file['stat'][7] % 512);
                                        fclose($new);
                                        @chmod($file['name'], $file['stat'][2]);
                                }
@@ -415,7 +416,6 @@ class tar_file extends archive
                }
                else
                        $this->error[] = "Could not open file {$this->options['name']}";
-               error_log('3');
 
                return $flist;
        }