1
0
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:
Lóna Lore
2015-12-07 12:05:19 +01:00
parent 71155763ce
commit f90e4d19c4

View File

@@ -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))