Skip to content

Commit

Permalink
Local installs possible again.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirix committed Jan 10, 2017
1 parent 154b478 commit ea771a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/Seeder.php
Expand Up @@ -242,7 +242,7 @@ protected function createAnonymousUser()

// For email validation, emails must match x@y.z
$host = $_SERVER['HTTP_HOST'] == 'localhost' ? 'lvh.me' : explode(':', $_SERVER['HTTP_HOST']);
$host = $host[0];
$host = is_array($host) ? $host[0] : $host;

$user = new User([
'name' => "Anonymous",
Expand All @@ -254,7 +254,7 @@ protected function createAnonymousUser()
]);

if (!$user->save()) {
var_dump($user->errors());
var_dump($user->email, $user->errors());
}

return $user->id;
Expand Down

0 comments on commit ea771a1

Please sign in to comment.