[NFC] Pass correct param types to file_get_contents
authorBradley Taylor <hello@brad-taylor.co.uk>
Fri, 1 Dec 2023 18:56:15 +0000 (18:56 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Fri, 1 Dec 2023 18:56:15 +0000 (18:56 +0000)
CRM/Contact/Form/Task/PDFTrait.php

index 9e8219c27d7a19f53806f701cef68a5b73ab6e5d..08451c39533a4381a6dc4c1ff403e7c0c15584ec 100644 (file)
@@ -272,7 +272,7 @@ trait CRM_Contact_Form_Task_PDFTrait {
 
     if ($tee) {
       $tee->stop();
-      $content = file_get_contents($tee->getFileName(), NULL, NULL, NULL, 5);
+      $content = file_get_contents($tee->getFileName(), FALSE, NULL, 0, 5);
       if (empty($content)) {
         throw new \CRM_Core_Exception("Failed to capture document content (type=$type)!");
       }