mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Check that we actually have a valid fp
git-svn-id: file:///svn/phpbb/trunk@6440 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
26aba1a1f1
commit
50a0c827ce
1 changed files with 5 additions and 0 deletions
|
@ -750,6 +750,11 @@ class install_install extends module
|
|||
|
||||
// Create a lock file to indicate that there is an install in progress
|
||||
$fp = @fopen($phpbb_root_path . 'cache/install_lock', 'wb');
|
||||
if ($fp === false)
|
||||
{
|
||||
// We were unable to create the lock file - abort
|
||||
$this->p_master->error($lang['UNABLE_WRITE_LOCK'], __LINE__, __FILE__);
|
||||
}
|
||||
@fclose($fp);
|
||||
|
||||
$dbpasswd = html_entity_decode($dbpasswd);
|
||||
|
|
Loading…
Add table
Reference in a new issue