From 75fd1335a467dfc6a25a016b39b3438356b454dc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 9 Jun 2014 16:28:42 -0700 Subject: [PATCH] CRM_Core_BAO_File - Fix warnings --- CRM/Core/BAO/File.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Core/BAO/File.php b/CRM/Core/BAO/File.php index b934ca9fcc..78047e9e9f 100644 --- a/CRM/Core/BAO/File.php +++ b/CRM/Core/BAO/File.php @@ -79,7 +79,7 @@ class CRM_Core_BAO_File extends CRM_Core_DAO_File { * @param $entityID * @param $entitySubtype * @param bool $overwrite - * @param null $fileParams + * @param null|array $fileParams * @param string $uploadName * @param null $mimeType * @@ -117,7 +117,6 @@ class CRM_Core_BAO_File extends CRM_Core_DAO_File { if (!rename($data, $directoryName . DIRECTORY_SEPARATOR . $filename)) { CRM_Core_Error::fatal(ts('Could not move custom file to custom upload directory')); - break; } // to get id's @@ -362,8 +361,8 @@ AND CEF.entity_id = %2"; } /** - * @param $form - * @param $entityTable + * @param CRM_Core_Form $form + * @param string $entityTable * @param null $entityID * @param null $numAttachments * @param bool $ajaxDelete -- 2.25.1