diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-01-18 22:33:00 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-01-18 22:33:00 +0100 |
commit | ece639c73c120111503182286a3768ae24ac37f9 (patch) | |
tree | 573642d7424b4ba3a90b1f487bafc11c51c3975b | |
parent | 3529312485e0480f8dbbe859a28429c6960a2ae4 (diff) | |
download | rpg-ece639c73c120111503182286a3768ae24ac37f9.tar.gz rpg-ece639c73c120111503182286a3768ae24ac37f9.tar.bz2 |
bzopen does not like 'b' open mode FS#1239
darcs-hash:20080118213300-7ad00-11a2b04c91c566ba2965bc548b94b8bf5b1bf5e5.gz
-rw-r--r-- | inc/io.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/io.php b/inc/io.php index f23a9a544..aaf71091f 100644 --- a/inc/io.php +++ b/inc/io.php @@ -183,7 +183,7 @@ function io_saveFile($file,$content,$append=false){ gzwrite($fh, $content); gzclose($fh); }else if(substr($file,-4) == '.bz2'){ - $fh = @bzopen($file,$mode); + $fh = @bzopen($file,$mode{0}); if(!$fh){ msg("Writing $file failed", -1); io_unlock($file); |