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