Skip to content

Commit

Permalink
created global variables.
Browse files Browse the repository at this point in the history
implemented code suggestions.
  • Loading branch information
elsongabriel committed Nov 20, 2023
1 parent 5010735 commit 96facfd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions system/pages/createaccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
global $config, $logged, $db, $hooks, $template_path, $twig;
/**
* Create account
*
Expand Down Expand Up @@ -344,12 +345,12 @@
$twig->display('account.create.js.html.twig');

$params = array(
'account' => isset($_POST['account']) ? $_POST['account'] : '',
'email' => isset($_POST['email']) ? $_POST['email'] : '',
'countries' => isset($countries) ? $countries : null,
'accept_rules' => isset($_POST['accept_rules']) ? $_POST['accept_rules'] : false,
'account' => $_POST['account'] ?? '',
'email' => $_POST['email'] ?? '',
'countries' => $countries ?? null,
'accept_rules' => $_POST['accept_rules'] ?? false,
'country_recognized' => $country_recognized,
'country' => isset($country) ? $country : null,
'country' => $country ?? null,
'errors' => $errors,
'save' => $save
);
Expand Down

0 comments on commit 96facfd

Please sign in to comment.