Skip to content

Commit

Permalink
Helper filesize if exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroOmatech committed Nov 15, 2019
1 parent 86d75da commit 56dce95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/admin/Helper/EditoraHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ function _activeDate($date_init, $date_end = null)
if (!function_exists('_getFileSize')) {
function _getLocalFileSize($file)
{
return filesize($file);
if(file_exists($file)){
return filesize($file);
}
return 0;
}
function _getRemoteFileSize($file)
{
Expand Down

0 comments on commit 56dce95

Please sign in to comment.