@@ -92,8 +92,9 @@ |
||
92 | 92 | array_pop($blocks); |
93 | 93 | |
94 | 94 | foreach ($blocks as $id => $block) { |
95 | - if (empty($block)) |
|
96 | - continue; |
|
95 | + if (empty($block)) { |
|
96 | + continue; |
|
97 | + } |
|
97 | 98 | if (strpos($block, 'application/octet-stream') !== false) { |
98 | 99 | preg_match("/name=\"([^\"]*)\".*stream[\n|\r]+([^\n\r].*)?$/s", $block, $matches); |
99 | 100 | if (count($matches) > 0) { |
@@ -75,8 +75,9 @@ |
||
75 | 75 | if (is_dir($src . '/' . $file)) { |
76 | 76 | $this->recursive_copy($src . '/' . $file, $dst . '/' . $file); |
77 | 77 | } else { |
78 | - if ($file) |
|
79 | - copy($src . '/' . $file, $dst . '/' . $file); |
|
78 | + if ($file) { |
|
79 | + copy($src . '/' . $file, $dst . '/' . $file); |
|
80 | + } |
|
80 | 81 | } |
81 | 82 | } |
82 | 83 | } |