summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);