projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7a31ba
)
Warning fixed
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 17 Sep 2010 08:50:32 +0000
(08:50 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Fri, 17 Sep 2010 08:50:32 +0000
(08:50 +0000)
includes/archive.inc
patch
|
blob
|
history
diff --git
a/includes/archive.inc
b/includes/archive.inc
index e679d6c7cb19f0008fa7f2be5236376ad50d7dd4..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]));
- 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]);
}