diff --git a/lib/RetailCrm/Methods/V5/Files.php b/lib/RetailCrm/Methods/V5/Files.php index 7e589c5..b891f74 100644 --- a/lib/RetailCrm/Methods/V5/Files.php +++ b/lib/RetailCrm/Methods/V5/Files.php @@ -169,7 +169,7 @@ trait Files */ public function fileEdit(array $file) { - if (!empty($file)) { + if (empty($file)) { throw new \InvalidArgumentException( 'Parameter `file` must contains a data' );