From defe60efb9c206a869e38ad874ee301698ff2e32 Mon Sep 17 00:00:00 2001 From: Kato Twofold Date: Sun, 28 Feb 2021 14:11:28 +0200 Subject: [PATCH] * Fixed an error handler --- lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib.php b/lib.php index 8db1e4b..0fbaa5b 100644 --- a/lib.php +++ b/lib.php @@ -232,15 +232,16 @@ class kpcrypt { // Close the input file fclose($fin); - } 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; } - // Close the output file fclose($fout); return 1; + } else { + $this->errorLog[] = "[" . __LINE__ . "]" . "Could not open file output path for writing."; + return false; } }