summaryrefslogtreecommitdiff
path: root/inc/io.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-01-18 22:33:00 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-01-18 22:33:00 +0100
commitece639c73c120111503182286a3768ae24ac37f9 (patch)
tree573642d7424b4ba3a90b1f487bafc11c51c3975b /inc/io.php
parent3529312485e0480f8dbbe859a28429c6960a2ae4 (diff)
downloadrpg-ece639c73c120111503182286a3768ae24ac37f9.tar.gz
rpg-ece639c73c120111503182286a3768ae24ac37f9.tar.bz2
bzopen does not like 'b' open mode FS#1239
darcs-hash:20080118213300-7ad00-11a2b04c91c566ba2965bc548b94b8bf5b1bf5e5.gz
Diffstat (limited to 'inc/io.php')
-rw-r--r--inc/io.php2
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);