Made test pessimistic by default

The test result was wrong if, for example, the path was wrong.
The unlink() function being never called, it returned the default true value even if it didn't
remove a file.
This commit is contained in:
Raphaël Doursenaud 2014-03-03 15:59:11 +01:00
parent f97d81701b
commit 7b542731a1

View File

@ -832,7 +832,7 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=n
$error=0;
//print "x".$file." ".$disableglob;exit;
$ok=true;
$ok=false;
$file_osencoded=dol_osencode($file); // New filename encoded in OS filesystem encoding charset
if (empty($disableglob) && ! empty($file_osencoded))
{