$table = "account";
$value = "value_eur";
$add = '';
- if ((strlen ($_POST['currency']) > 0) && ($_POST['currency'] == "dm")) {
+ if ((strlen($_POST['currency']) > 0) && ($_POST['currency'] == "dm")) {
$table = "account_dm";
$value = "value_dm";
$add = "&cur=dm";
$where[] = sprintf ("datum < '%04d-01-01'", $_POST['year']+1);
}
- if (strlen($_POST[deadline]) && strlen(trim($_POST['deadline']))) {
+ if (strlen($_POST['deadline']) && strlen(trim($_POST['deadline']))) {
$date = form_to_yyyymmdd ($_POST['deadline']);
$where[] = sprintf ("datum < '%s'", $date);
}
$out .= "</tr>";
$color = !$color;
}
- if (strlen($statement)) {
+ if (strlen($_POST['statement'])) {
$out .= sprintf ("<tr class=\"t%d\">", $color);
$out .= "<td width=\"90%\" colspan=\"3\"><strong>Summe Einnahmen</strong></td>";
$out .= sprintf ("<td width=\"10%%\" align=\"right\" class=\"in\">%5.2f</td>",$sum_in);