1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +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(isset($pref['e_header_list']['social']))
{ {
if($just_check) if($just_check)
@@ -681,21 +683,19 @@ function update_core_database($type = '')
} }
// User is marked as not installed.
if($sql->select('plugin', 'plugin_id', "plugin_path = 'user' AND plugin_installflag != 1 LIMIT 1"))
$e_user_list = e107::getPref('e_user_list'); {
if($just_check)
e107::getPlug()->clearCache()->buildAddonPrefLists();
if(empty($e_user_list['user'])) // check e107_plugins/user/e_user.php is registered.
{ {
if($just_check) return update_needed("Plugin table 'user' value needs to be reset.");
{
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);
} }
$sql->delete('plugin', "plugin_path = 'user'");
//e107::getPlug()->clearCache();
}
// Make sure, that the pref "post_script" contains one of the allowed userclasses // Make sure, that the pref "post_script" contains one of the allowed userclasses
// Close possible security hole // Close possible security hole