From: Joey Schulze Date: Sun, 28 Feb 2010 12:45:54 +0000 (+0100) Subject: Pull linebreak out of if construct X-Git-Tag: 2010-06-02_customer~177 X-Git-Url: https://git.infodrom.org/?p=misc%2Fkostenrechnung;a=commitdiff_plain;h=ac5104c6200d42b87b6a27b264c04e0287de88ce;ds=sidebyside Pull linebreak out of if construct --- diff --git a/lib/mask.php b/lib/mask.php index 588b2a9..72d3b67 100644 --- a/lib/mask.php +++ b/lib/mask.php @@ -33,10 +33,10 @@ function build_form($name, $fields) $v[] = 'size="'.(empty($info['size'])?'10':$info['size']).'"'; $v[] = 'type="'.($info['type']=='passwd'?'password':'text').'"'; $ret[] = sprintf('
', $id, $info['name']); - $ret[] = sprintf('
', implode(' ', $v)); + $ret[] = sprintf('', implode(' ', $v)); } elseif ($info['type'] == 'boolean') { $ret[] = sprintf('
', $id, $info['name']); - $ret[] = sprintf('
', $id, $id); + $ret[] = sprintf('', $id, $id); } elseif ($info['type'] == 'select') { $ret[] = sprintf('
', $id, $info['name']); $ret[] = sprintf('
'; + $ret[] = ''; } elseif ($info['type'] == 'date') { error_log('type = date'); } + $ret[] = '
'; } $ret[] = '';