1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fixes #3592 - e_user_list issue.

This commit is contained in:
Cameron
2019-01-31 15:04:18 -08:00
parent 59eed2752c
commit e462759c4f

View File

@@ -659,6 +659,8 @@ function update_core_database($type = '')
}
if(isset($pref['e_header_list']['social']))
{
if($just_check)
@@ -681,21 +683,19 @@ function update_core_database($type = '')
}
$e_user_list = e107::getPref('e_user_list');
e107::getPlug()->clearCache()->buildAddonPrefLists();
if(empty($e_user_list['user'])) // check e107_plugins/user/e_user.php is registered.
// User is marked as not installed.
if($sql->select('plugin', 'plugin_id', "plugin_path = 'user' AND plugin_installflag != 1 LIMIT 1"))
{
if($just_check)
{
if($just_check)
{
return update_needed("user/e_user.php need to be registered"); // NO LAN.
}
e107::getConfig()->setPref('e_user_list/user', 'user')->save(false,true,false);
return update_needed("Plugin table 'user' value needs to be reset.");
}
$sql->delete('plugin', "plugin_path = 'user'");
//e107::getPlug()->clearCache();
}
// Make sure, that the pref "post_script" contains one of the allowed userclasses
// Close possible security hole