Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 22, 2017
1 parent 64721d7 commit b66ba6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/files.lib.php
Expand Up @@ -910,7 +910,7 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=n
include_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmfiles.class.php';
$ecmfile=new EcmFiles($db);
$result = $ecmfile->fetch(0, '', $rel_filetodelete);
if ($result >= 0)
if ($result >= 0 && $ecmfile->id > 0)
{
$result = $ecmfile->delete($user);
}
Expand Down

0 comments on commit b66ba6c

Please sign in to comment.