Fixed typo

Credit to @bennothommo

Co-Authored-By: LukeTowers <github@luketowers.ca>
This commit is contained in:
Ben Thomson 2019-04-11 23:36:13 -06:00 committed by GitHub
parent 630d543959
commit ab6023f3e9

View File

@ -89,7 +89,7 @@ class AutoDatasource extends Datasource implements DatasourceInterface
$sourcePaths = $this->getSourcePaths($source);
if (!empty($paths)) {
if (!empty($sourcePaths)) {
// Generate the path
list($name, $extension) = $model->getFileNameParts();
$path = $this->makeFilePath($model->getObjectTypeDirName(), $name, $extension);
@ -507,4 +507,4 @@ class AutoDatasource extends Datasource implements DatasourceInterface
}
return $paths;
}
}
}