Skip to content

Commit

Permalink
Merge pull request civicrm#19 from seamuslee001/CRM-17801-fuzion
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Feb 12, 2016
2 parents 8c72018 + b4da597 commit 6c2baae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Import/DataSource/CSV.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ private static function _CsvToTable(
if (!$fd) {
CRM_Core_Error::fatal("Could not read $file");
}
if (filesize($file) == 0) {
CRM_Core_Error::fatal("$file is empty. Please upload a valid file.");
}

$config = CRM_Core_Config::singleton();
// support tab separated
Expand Down

0 comments on commit 6c2baae

Please sign in to comment.