We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c34a34 commit 1f5e995Copy full SHA for 1f5e995
modules/pdf-ninja.php
@@ -551,11 +551,10 @@ private function get_file_id( $attachment_id )
551
$file_id = WPCF7_Pdf_Forms::get_meta( $attachment_id, 'file_id' );
552
if( ! $file_id )
553
{
554
- $file_id = substr($attachment_id . "-" . get_site_url(), 0, 40);
555
- return WPCF7_Pdf_Forms::set_meta( $attachment_id, 'file_id', $file_id );
+ $file_id = substr( $attachment_id . "-" . get_site_url(), 0, 40 );
+ WPCF7_Pdf_Forms::set_meta( $attachment_id, 'file_id', $file_id );
556
}
557
- else
558
- return $file_id;
+ return substr( $file_id, 0, 40 );
559
560
561
/*
0 commit comments