mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
"only check if $name is a string"
This commit is contained in:
parent
3fa1859f70
commit
e3c60d8243
@ -964,7 +964,7 @@ class etemplate extends boetemplate
|
|||||||
$options = '';
|
$options = '';
|
||||||
if ($readonly = $cell['readonly'] && $readonlys[$name] !== false || // allow to overwrite readonly settings of a cell
|
if ($readonly = $cell['readonly'] && $readonlys[$name] !== false || // allow to overwrite readonly settings of a cell
|
||||||
@$readonlys[$name] && !is_array($readonlys[$name]) || $readonlys['__ALL__'] ||
|
@$readonlys[$name] && !is_array($readonlys[$name]) || $readonlys['__ALL__'] ||
|
||||||
($p = strrpos($name,'[')) !== false && ($parent=substr($name,0,$p)) && $readonlys[$parent]) // allow also set parent readonly (instead each child)
|
is_string($name) && ($p = strrpos($name,'[')) !== false && ($parent=substr($name,0,$p)) && $readonlys[$parent]) // allow also set parent readonly (instead each child)
|
||||||
{
|
{
|
||||||
$options .= ' readonly="readonly"';
|
$options .= ' readonly="readonly"';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user