mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-22 10:52:00 +02:00
Clean up evals for php3, same as .12 branch
This commit is contained in:
parent
829250b0c0
commit
c77b23fbc7
@ -149,7 +149,7 @@
|
|||||||
while (list($type,$val) = each($this->adr_types))
|
while (list($type,$val) = each($this->adr_types))
|
||||||
{
|
{
|
||||||
$ftype = 'one_'.$type;
|
$ftype = 'one_'.$type;
|
||||||
eval("if (\$\$ftype=='on'\) { \$typed \.= \$type\.';'; }");
|
eval("if (\$\$ftype=='on') { \$typed .= \$type . ';'; }");
|
||||||
}
|
}
|
||||||
$fields['adr_one_type'] = substr($typed,0,-1);
|
$fields['adr_one_type'] = substr($typed,0,-1);
|
||||||
|
|
||||||
@ -167,7 +167,7 @@
|
|||||||
while (list($type,$val) = each($this->adr_types))
|
while (list($type,$val) = each($this->adr_types))
|
||||||
{
|
{
|
||||||
$ftype = 'two_'.$type;
|
$ftype = 'two_'.$type;
|
||||||
eval("if \(\$\$ftype=='on'\) { \$typed \.= \$type\.';'; }");
|
eval("if (\$\$ftype=='on') { \$typed \.= \$type . ';'; }");
|
||||||
}
|
}
|
||||||
$fields['adr_two_type'] = substr($typed,0,-1);
|
$fields['adr_two_type'] = substr($typed,0,-1);
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@
|
|||||||
while (list($type,$val) = each($this->adr_types))
|
while (list($type,$val) = each($this->adr_types))
|
||||||
{
|
{
|
||||||
$ftype = 'one_'.$type;
|
$ftype = 'one_'.$type;
|
||||||
eval("if (\$\$ftype=='on'\) { \$typed \.= \$type\.';'; }");
|
eval("if (\$\$ftype=='on') { \$typed .= \$type . ';'; }");
|
||||||
}
|
}
|
||||||
$fields['adr_one_type'] = substr($typed,0,-1);
|
$fields['adr_one_type'] = substr($typed,0,-1);
|
||||||
|
|
||||||
@ -176,7 +176,7 @@
|
|||||||
while (list($type,$val) = each($this->adr_types))
|
while (list($type,$val) = each($this->adr_types))
|
||||||
{
|
{
|
||||||
$ftype = 'two_'.$type;
|
$ftype = 'two_'.$type;
|
||||||
eval("if \(\$\$ftype=='on'\) { \$typed \.= \$type\.';'; }");
|
eval("if (\$\$ftype=='on') { \$typed .= \$type . ';'; }");
|
||||||
}
|
}
|
||||||
$fields["adr_two_type"] = substr($typed,0,-1);
|
$fields["adr_two_type"] = substr($typed,0,-1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user