From: Janusz Dobrowolski Date: Fri, 17 Sep 2010 08:50:32 +0000 (+0000) Subject: Warning fixed X-Git-Tag: v2.4.2~19^2~624 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d16164d149351419a90b53376f603fcd25a46676;p=fa-stable.git Warning fixed --- diff --git a/includes/archive.inc b/includes/archive.inc index e679d6c7..696903f9 100644 --- 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]); }