From 146b50d11dfd625c6ce8e5c0686cc7e2a388ce69 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 17 Jan 2016 03:08:08 +0100 Subject: [PATCH] i suck hold on --- libraries/User.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libraries/User.php b/libraries/User.php index 65c144c..e8916a3 100644 --- a/libraries/User.php +++ b/libraries/User.php @@ -65,7 +65,7 @@ class User $usernameClean = Utils::cleanString($username, true); $emailClean = Utils::cleanString($email, true); $password = Hashing::createHash($password); - + // Insert the user into the database Database::insert('users', [ 'username' => $username, @@ -81,7 +81,6 @@ class User 'user_registered' => time(), 'user_last_online' => 0, 'user_country' => Utils::getCountryCode(), - 'user_data' => '[]', ]); // Get the last id @@ -588,7 +587,7 @@ class User return $a['field_value']; }, $optionValuesRaw); $optionValues = array_combine($optionValueKeys, $optionValueVals); - + // Check if anything was returned if (!$optionFields || !$optionValues) { return $options; @@ -609,10 +608,10 @@ class User // Assign field to output with value $options[$field['option_id']] = $optionValues[$field['option_id']]; } - + // Assign cache $this->optionFields = $options; - + // Return appropiate option data return $options; }