Skip to content

Commit

Permalink
return false on empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed Jan 2, 2024
1 parent e6994de commit fc296ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Module/Catalog/Catalog_local.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ public function add_file($full_file, $options, $counter = 0): bool
debug_event('local.catalog', "Unable to get filesize for $full_file", 2);
/* HINT: FullFile */
AmpError::add('catalog_add', sprintf(T_('Unable to get the filesize for "%s"'), $full_file));

return false;
} // file_size check

if (!Core::is_readable($full_file)) {
Expand Down

0 comments on commit fc296ec

Please sign in to comment.