summaryrefslogtreecommitdiffstats
path: root/src/pdf-invoice
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf-invoice')
-rw-r--r--src/pdf-invoice/pdf-invoice.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf-invoice/pdf-invoice.vala b/src/pdf-invoice/pdf-invoice.vala
index 5182425..9c290ac 100644
--- a/src/pdf-invoice/pdf-invoice.vala
+++ b/src/pdf-invoice/pdf-invoice.vala
@@ -608,7 +608,7 @@ public class InvoicePDF {
if(invoice_date == 0)
throw new InvoicePDFError.NO_INVOICE_DATE("No invoice date given!");
- if(invoice_recipient.firstname == "" || invoice_recipient.lastname == "")
+ if(invoice_recipient.firstname == "" && invoice_recipient.lastname == "")
throw new InvoicePDFError.NO_INVOICE_RECIPIENT("No invoice recipient given!");
/* first page */