1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11008] Remove eval() calls to get document[id]

PHPBB3-11008
This commit is contained in:
Igor Wiedler
2012-07-20 23:53:11 +02:00
parent 841ea0e494
commit ca43a8947a
4 changed files with 4 additions and 20 deletions

View File

@@ -62,11 +62,7 @@ function dE(n, s, type)
*/
function marklist(id, name, state)
{
var parent = document.getElementById(id);
if (!parent)
{
eval('parent = document.' + id);
}
var parent = document.getElementById(id) || document[id];
if (!parent)
{