diff options
| author | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-04 18:25:05 +0000 |
|---|---|---|
| committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-04 18:25:05 +0000 |
| commit | 50a0c827ce37fa682d2a2490d8c5a8882274a503 (patch) | |
| tree | 3304e7cb07d5386c84a42df2375dc93dc6a6131e /phpBB/install/install_install.php | |
| parent | 26aba1a1f170ac51a56fe86bbc19588e0efee3c3 (diff) | |
| download | forums-50a0c827ce37fa682d2a2490d8c5a8882274a503.tar forums-50a0c827ce37fa682d2a2490d8c5a8882274a503.tar.gz forums-50a0c827ce37fa682d2a2490d8c5a8882274a503.tar.bz2 forums-50a0c827ce37fa682d2a2490d8c5a8882274a503.tar.xz forums-50a0c827ce37fa682d2a2490d8c5a8882274a503.zip | |
Check that we actually have a valid fp
git-svn-id: file:///svn/phpbb/trunk@6440 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_install.php')
| -rwxr-xr-x | phpBB/install/install_install.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index bd53016009..567457fdf3 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -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); |
