small fixes #392

This commit is contained in:
denisdulici
2018-06-23 16:45:03 +03:00
parent 912f085ea9
commit 9566464938
3 changed files with 3 additions and 19 deletions

View File

@ -319,9 +319,7 @@ class Invoices extends Controller
$import->each(function ($sheet) use (&$success) {
$slug = 'Income\\' . str_singular(studly_case($sheet->getTitle()));
$success = Import::createFromSheet($sheet, $slug);
if (!$success) {
if (!$success = Import::createFromSheet($sheet, $slug)) {
return false;
}
});