Skip to content

Commit

Permalink
strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
philiplb committed Aug 22, 2017
1 parent cf562ea commit 8c8dca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CRUDlex/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function shouldWriteFile(AbstractData $data, Request $request, Entity
$filesystem = $this->filesystem;
$this->performOnFiles($entity, $entityName, function($entity, $entityName, $field) use ($filesystem, $request) {
$file = $request->files->get($field);
if ($file != null && $file->isValid()) {
if ($file !== null && $file->isValid()) {
$path = $this->getPath($entityName, $entity, $field);
$filename = $path.'/'.$file->getClientOriginalName();
if ($filesystem->has($filename)) {
Expand Down

0 comments on commit 8c8dca5

Please sign in to comment.