mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
menumanager_class.php: fixed path for menu config action (it included '.php' and leaded to '.php.php' anding);
signup.php: added default empty values for user_class, user_perms, user_prefs, user_realm as they were leading to DB Insert error;
This commit is contained in:
10
signup.php
10
signup.php
@@ -513,7 +513,8 @@ if (isset($_POST['register']))
|
||||
}
|
||||
// Work out data to be written to user audit trail
|
||||
$signup_data = array('user_name', 'user_loginname', 'user_email', 'user_ip');
|
||||
foreach (array() as $f)
|
||||
// foreach (array() as $f)
|
||||
foreach ($signup_data as $f)
|
||||
{
|
||||
$signup_data[$f] = $allData['data'][$f]; // Just copy across selected fields
|
||||
}
|
||||
@@ -525,6 +526,13 @@ if (isset($_POST['register']))
|
||||
}
|
||||
|
||||
$allData['data']['user_join'] = time();
|
||||
|
||||
// The user_class, user_perms, user_prefs, user_realm fields don't have default value,
|
||||
// so we put apropriate ones, otherwise - broken DB Insert
|
||||
$allData['data']['user_class'] = '';
|
||||
$allData['data']['user_perms'] = '';
|
||||
$allData['data']['user_prefs'] = '';
|
||||
$allData['data']['user_realm'] = '';
|
||||
|
||||
// Actually write data to DB
|
||||
validatorClass::addFieldTypes($userMethods->userVettingInfo,$allData);
|
||||
|
Reference in New Issue
Block a user