mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Fixed: Issue #1265: admin UI - readonly with type user
This commit is contained in:
@@ -3693,7 +3693,19 @@ class e_form
|
||||
elseif($value && is_numeric($value))
|
||||
{
|
||||
$id = $value;
|
||||
$ttl = vartrue($parms['__nameval']);
|
||||
|
||||
if (vartrue($parms['__nameval']))
|
||||
{
|
||||
$ttl = vartrue($parms['__nameval']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$user = e107::user($value);
|
||||
if (vartrue($user['user_name']))
|
||||
{
|
||||
$ttl = $user['user_name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user