Fehlerhafte Bedingung gefixt.
authorPascal Hofmann <mail@pascalhofmann.de>
Mon, 31 Oct 2011 13:25:20 +0000 (14:25 +0100)
committerPascal Hofmann <mail@pascalhofmann.de>
Mon, 31 Oct 2011 13:25:20 +0000 (14:25 +0100)
include/dtaus.php

index 1efa0cf..808576d 100644 (file)
@@ -11,7 +11,7 @@ function action_dtaus() {
                if (empty($member['directdebit'])) {
                        // Barzahler
                        $open = bcsub(fees_sum_for_member($member['id'], time()), bcadd(finance_get_paid_fees_for_member($member['id']), finance_get_paid_fees_for_member($member['id'], true)));
-                       if ($open < 0) continue; // bccompare
+                       if (bccomp($open, 0) != 1) continue;
                        $cash_payments[] = array(
                                'member_id'     => $member['id'],
                                'member_number' => $member['number'],