From ca43a8947a67642f6d1f211f1f5e030b2526ebe2 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Fri, 20 Jul 2012 23:53:11 +0200 Subject: [ticket/11008] Remove eval() calls to get document[id] PHPBB3-11008 --- phpBB/styles/subsilver2/template/memberlist_search.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'phpBB/styles/subsilver2/template/memberlist_search.html') diff --git a/phpBB/styles/subsilver2/template/memberlist_search.html b/phpBB/styles/subsilver2/template/memberlist_search.html index 96ffad00d6..ab1ecca2ee 100644 --- a/phpBB/styles/subsilver2/template/memberlist_search.html +++ b/phpBB/styles/subsilver2/template/memberlist_search.html @@ -43,11 +43,7 @@ */ 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) { -- cgit v1.2.1