diff options
author | chris <chris@jalakai.co.uk> | 2006-02-03 00:22:49 +0100 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-02-03 00:22:49 +0100 |
commit | ce070a9f83cfdd14001e835635ff4e1a3f43f41c (patch) | |
tree | df310413ec27021eb3d909eafb4af365cc2f1ce0 /inc | |
parent | 67019d15f9bb4e92d554619f5104958ceb785055 (diff) | |
download | rpg-ce070a9f83cfdd14001e835635ff4e1a3f43f41c.tar.gz rpg-ce070a9f83cfdd14001e835635ff4e1a3f43f41c.tar.bz2 |
fix for PHP5/Win, avoid initialising an array as a function parameter
darcs-hash:20060202232249-9b6ab-714f97dd150f2e0e7bef5458ab74f5336a1e5f8c.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/io.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/io.php b/inc/io.php index 9c02e87c6..f882d9b36 100644 --- a/inc/io.php +++ b/inc/io.php @@ -294,8 +294,9 @@ function io_download($url,$file,$useAttachment=false,$defaultName=''){ $name = ''; if (isset($http->resp_headers['content-disposition'])) { $content_disposition = $http->resp_headers['content-disposition']; + $match=array(); if (is_string($content_disposition) && - preg_match('/attachment;\s*filename\s*=\s*"([^"]*)"/i', $content_disposition, $match=array())) { + preg_match('/attachment;\s*filename\s*=\s*"([^"]*)"/i', $content_disposition, $match)) { $name = basename($match[1]); } |