Fixing a line that was throwing up warnings when running the script with -w
authorrangi <rangi>
Sat, 14 May 2005 22:20:17 +0000 (22:20 +0000)
committerrangi <rangi>
Sat, 14 May 2005 22:20:17 +0000 (22:20 +0000)
C4/Accounts.pm

index 94997c2..83ae1a2 100755 (executable)
@@ -85,7 +85,7 @@ sub checkaccount  {
                WHERE borrowernumber = ?
                        AND amountoutstanding<>0";
        my @bind = ($bornumber);
-       if ($date ne ''){
+       if ($date && $date ne ''){
        $select.=" AND date < ?";
        push(@bind,$date);
        }