From aba0caf62458fe445b90fd69d24e49e2632fcc20 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 04:26:20 +0000 Subject: [PATCH] MINOR Temporary fix for exception thrown in installer when existing admin account exists, temp fix just leaves existing admin account intact (from r101085) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112214 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();