@@ -364,8 +364,7 @@ |
||
| 364 | 364 | $len = strpos($string, $end, $ini + strlen($start)) + strlen($end); |
| 365 | 365 | $rest = substr($string, 0, $ini).substr($string, $len); |
| 366 | 366 | } |
| 367 | - } |
|
| 368 | - else { |
|
| 367 | + } else { |
|
| 369 | 368 | $url = ''; |
| 370 | 369 | $rest = str_replace(array($start,$end),'',$string); |
| 371 | 370 | } |
@@ -18,9 +18,10 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $allowed_imgs = $this->AllowedContentTypeImages(); |
| 20 | 20 | |
| 21 | - if (trim($url)) |
|
| 22 | - if ($img_file_handle = @fopen($url.$manipulation, 'rb')) { |
|
| 21 | + if (trim($url)) { |
|
| 22 | + if ($img_file_handle = @fopen($url.$manipulation, 'rb')) { |
|
| 23 | 23 | $img_data = stream_get_contents($img_file_handle); |
| 24 | + } |
|
| 24 | 25 | fclose($img_file_handle); |
| 25 | 26 | $fi = new \finfo(FILEINFO_MIME); |
| 26 | 27 | |