projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added closing transactions up to selected date.
[fa-stable.git]
/
includes
/
archive.inc
diff --git
a/includes/archive.inc
b/includes/archive.inc
index d8316d39877150fb4f217498a6c615679e358a2f..696903f9b807ad091ecd7d2f2727c5f62aefd2af 100644
(file)
--- a/
includes/archive.inc
+++ b/
includes/archive.inc
@@
-395,7
+395,8
@@
class tar_file extends archive
else if ($new = @fopen($file['name'], "wb"))
{
fwrite($new, fread($fp, $file['stat'][7]));
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]);
}
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']}";
}
else
$this->error[] = "Could not open file {$this->options['name']}";
- error_log('3');
return $flist;
}
return $flist;
}