1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

Fix bugs #46615 & #46945 - Fail gracefully if store folder is not writable during update.

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9768 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Andreas Fischer
2009-07-17 11:32:27 +00:00
parent 6cacfce937
commit ab9715a9fe
3 changed files with 12 additions and 1 deletions

View File

@@ -155,7 +155,12 @@ class compress_zip extends compress
*/
function compress_zip($mode, $file)
{
return $this->fp = @fopen($file, $mode . 'b');
$this->fp = @fopen($file, $mode . 'b');
if (!$this->fp)
{
trigger_error('Unable to open file ' . $file . ' [' . $mode . 'b]');
}
}
/**