@@ -17,8 +17,9 @@ |
||
17 | 17 | $country_id = $request->getAttribute('routeInfo')[2]['country']; |
18 | 18 | |
19 | 19 | // Useful when a client edits the URL and types a language that does not exist. |
20 | - if (!$this->checkCountry($country_id)) |
|
21 | - return $response->withRedirect($this->router->pathFor('wrong-entry')); |
|
20 | + if (!$this->checkCountry($country_id)) { |
|
21 | + return $response->withRedirect($this->router->pathFor('wrong-entry')); |
|
22 | + } |
|
22 | 23 | |
23 | 24 | setcookie('country', $country_id, time() + (30 * 24 * 60 * 60)); // 30 days |
24 | 25 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | return User::find($uid)->user['sourcedId']; |
16 | 16 | } |
17 | 17 | |
18 | - /** protected $fillable = [ |
|
18 | + /** protected $fillable = [ |
|
19 | 19 | 'username', |
20 | 20 | 'email', |
21 | 21 | 'password', |