FIX checking if file was open (#29871)
This commit is contained in:
parent
56290e2e4e
commit
5eede37cb0
1 changed files with 1 additions and 1 deletions
|
|
@ -1707,7 +1707,7 @@ class BonPrelevement extends CommonObject
|
|||
dol_syslog(get_class($this) . "::generate build file=" . $this->filename . " type=" . $type);
|
||||
|
||||
$this->file = fopen($this->filename, "w");
|
||||
if (empty($this->file)) {
|
||||
if ($this->file == false) {
|
||||
$this->error = $langs->trans('ErrorFailedToOpenFile', $this->filename);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue