From 1d2b125748ce9a0f8a9611c55d24da9884dfc1a0 Mon Sep 17 00:00:00 2001 From: sharvey Date: Mon, 15 Mar 2010 23:39:00 +0000 Subject: [PATCH] MINOR Temporary fix for exception thrown in installer when existing admin account exists, temp fix just leaves existing admin account intact git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@101085 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index 2f8e417..62f6c45 100644 --- a/install.php +++ b/install.php @@ -949,7 +949,10 @@ PHP $adminMember->PasswordEncryption = Security::get_password_encryption_algorithm(); $adminMember->FirstName = $config['admin']['firstname']; $adminMember->Surname = $config['admin']['surname']; - $adminMember->write(); + try { + $adminMember->write(); + } catch(Exception $e) { + } // Syncing filesystem (so /assets/Uploads is available instantly, see ticket #2266) Filesystem::sync();