diff --git a/webservices/import.php b/webservices/import.php index dee36f50b..17699e10a 100644 --- a/webservices/import.php +++ b/webservices/import.php @@ -259,6 +259,11 @@ try // // Check parameters format/consistency // + if (strlen($sCSVData) == 0) + { + throw new ExchangeException("Missing data - at least one line is expected"); + } + if (!MetaModel::IsValidClass($sClass)) { throw new BulkLoadException("Unknown class: '$sClass'");