open
CSV import chokes on empty rows
When a CSV has a trailing blank line, Budget Buddy throws instead of skipping it. What's the cleanest guard?
foreach ($rows as $r) {
$amount = (float) $r[2]; // <- blank row => $r[2] undefined
$total += $amount;
}