Skip to content

Commit

Permalink
Update Main.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf committed Nov 1, 2024
1 parent db37b10 commit 7f23995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function get_document_pdf_attachment( $document, $tmp_path ) {
$filename = $document->get_filename();
$pdf_path = $tmp_path . $filename;
$document_type = $document->get_type();
$order_id = $document->order->get_id();
$order_id = isset( $document->order ) ? $document->order->get_id() : 0;
$lock_file = apply_filters( 'wpo_wcpdf_lock_attachment_file', true );
$max_reuse_age = apply_filters( 'wpo_wcpdf_reuse_attachment_age', 60 );
$lock_acquired = false;
Expand Down

0 comments on commit 7f23995

Please sign in to comment.