mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
Remove eval from ldap version, too
This commit is contained in:
parent
4248167886
commit
46e44572df
@ -209,7 +209,10 @@
|
||||
$one_type = $return_fields[0]['adr_one_type'];
|
||||
foreach($this->adr_types as $name => $val)
|
||||
{
|
||||
eval("if(strstr(\$one_type,\$name)) { \$return_fields[0][\"one_\$name\"] = \"on\"; }");
|
||||
if(strstr($one_type,$name))
|
||||
{
|
||||
$return_fields[0]['one_'.$name] = 'on';
|
||||
}
|
||||
}
|
||||
}
|
||||
if($return_fields[0]['adr_two_type'])
|
||||
@ -217,7 +220,10 @@
|
||||
$two_type = $return_fields[0]['adr_two_type'];
|
||||
foreach($this->adr_types as $name => $val)
|
||||
{
|
||||
eval("if(strstr(\$two_type,\$name)) { \$return_fields[0][\"two_\$name\"] = \"on\"; }");
|
||||
if (strstr($two_type,$name))
|
||||
{
|
||||
$return_fields[0]['two_'.$name] = 'on';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -281,7 +287,10 @@
|
||||
$one_type = $return_fields[0]['adr_one_type'];
|
||||
foreach($this->adr_types as $name => $val)
|
||||
{
|
||||
eval("if(strstr(\$one_type,\$name)) { \$return_fields[0][\"one_\$name\"] = \"on\"; }");
|
||||
if(strstr($one_type,$name))
|
||||
{
|
||||
$return_fields[0]['one_'.$name] = 'on';
|
||||
}
|
||||
}
|
||||
}
|
||||
if($return_fields[0]['adr_two_type'])
|
||||
@ -289,7 +298,10 @@
|
||||
$two_type = $return_fields[0]['adr_two_type'];
|
||||
foreach($this->adr_types as $name => $val)
|
||||
{
|
||||
eval("if(strstr(\$two_type,\$name)) { \$return_fields[0][\"two_\$name\"] = \"on\"; }");
|
||||
if (strstr($two_type,$name))
|
||||
{
|
||||
$return_fields[0]['two_'.$name] = 'on';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,10 @@
|
||||
$one_type = $this->db->f('adr_one_type');
|
||||
foreach($this->adr_types as $name => $val)
|
||||
{
|
||||
if (strstr($one_type,$name)) $return_fields[0]['one_'.$name] = 'on';
|
||||
if (strstr($one_type,$name))
|
||||
{
|
||||
$return_fields[0]['one_'.$name] = 'on';
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($this->db->f('adr_two_type'))
|
||||
@ -221,7 +224,10 @@
|
||||
$two_type = $this->db->f('adr_two_type');
|
||||
foreach($this->adr_types as $name => $val)
|
||||
{
|
||||
if (strstr($two_type,$name)) $return_fields[0]['two_'.$name] = 'on';
|
||||
if (strstr($two_type,$name))
|
||||
{
|
||||
$return_fields[0]['two_'.$name] = 'on';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user