Permalink
Browse files

MINOR Temporary fix for exception thrown in installer when existing a…

…dmin 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
  • Loading branch information...
1 parent 8169456 commit aba0caf62458fe445b90fd69d24e49e2632fcc20 sminnee committed Oct 13, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 install.php
View
@@ -949,7 +949,10 @@ function install($config) {
$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();

0 comments on commit aba0caf

Please sign in to comment.