i suck hold on
This commit is contained in:
parent
d62f8d61bc
commit
146b50d11d
1 changed files with 4 additions and 5 deletions
|
@ -65,7 +65,7 @@ class User
|
||||||
$usernameClean = Utils::cleanString($username, true);
|
$usernameClean = Utils::cleanString($username, true);
|
||||||
$emailClean = Utils::cleanString($email, true);
|
$emailClean = Utils::cleanString($email, true);
|
||||||
$password = Hashing::createHash($password);
|
$password = Hashing::createHash($password);
|
||||||
|
|
||||||
// Insert the user into the database
|
// Insert the user into the database
|
||||||
Database::insert('users', [
|
Database::insert('users', [
|
||||||
'username' => $username,
|
'username' => $username,
|
||||||
|
@ -81,7 +81,6 @@ class User
|
||||||
'user_registered' => time(),
|
'user_registered' => time(),
|
||||||
'user_last_online' => 0,
|
'user_last_online' => 0,
|
||||||
'user_country' => Utils::getCountryCode(),
|
'user_country' => Utils::getCountryCode(),
|
||||||
'user_data' => '[]',
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Get the last id
|
// Get the last id
|
||||||
|
@ -588,7 +587,7 @@ class User
|
||||||
return $a['field_value'];
|
return $a['field_value'];
|
||||||
}, $optionValuesRaw);
|
}, $optionValuesRaw);
|
||||||
$optionValues = array_combine($optionValueKeys, $optionValueVals);
|
$optionValues = array_combine($optionValueKeys, $optionValueVals);
|
||||||
|
|
||||||
// Check if anything was returned
|
// Check if anything was returned
|
||||||
if (!$optionFields || !$optionValues) {
|
if (!$optionFields || !$optionValues) {
|
||||||
return $options;
|
return $options;
|
||||||
|
@ -609,10 +608,10 @@ class User
|
||||||
// Assign field to output with value
|
// Assign field to output with value
|
||||||
$options[$field['option_id']] = $optionValues[$field['option_id']];
|
$options[$field['option_id']] = $optionValues[$field['option_id']];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assign cache
|
// Assign cache
|
||||||
$this->optionFields = $options;
|
$this->optionFields = $options;
|
||||||
|
|
||||||
// Return appropiate option data
|
// Return appropiate option data
|
||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue