From 50a0c827ce37fa682d2a2490d8c5a8882274a503 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Wed, 4 Oct 2006 18:25:05 +0000 Subject: [PATCH] Check that we actually have a valid fp git-svn-id: file:///svn/phpbb/trunk@6440 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install_install.php | 5 +++++ 1 file changed, 5 insertions(+) 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);