diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index 76227683bdfc..929f10e1a390 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -518,7 +518,7 @@ class InvoiceController extends \BaseController $backup->invoice_date = Utils::fromSqlDate($backup->invoice_date); $backup->due_date = Utils::fromSqlDate($backup->due_date); $backup->is_pro = Auth::user()->isPro(); - $backup->is_quote = intval($backup->is_quote); + $backup->is_quote = isset($backup->is_quote) && intval($backup->is_quote); $backup->account = $invoice->account->toArray(); $versionsJson[$activity->id] = $backup;