* Fixed an error handler

This commit is contained in:
Daniel Legt 2021-02-28 14:11:28 +02:00
parent cb38762215
commit defe60efb9
1 changed files with 4 additions and 3 deletions

View File

@ -232,15 +232,16 @@ class kpcrypt {
// Close the input file // Close the input file
fclose($fin); fclose($fin);
} else { } else {
$this->errorLog[] = "[" . __LINE__ . "]" . "Could not open file output path for writing."; $this->errorLog[] = "[" . __LINE__ . "]" . "Could not open file input path for writing.";
return false; return false;
} }
// Close the output file // Close the output file
fclose($fout); fclose($fout);
return 1; return 1;
} else {
$this->errorLog[] = "[" . __LINE__ . "]" . "Could not open file output path for writing.";
return false;
} }
} }