Skip to content

Commit

Permalink
Fix use wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Feb 3, 2020
1 parent 8a88028 commit 5934a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rundiz/Upload/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* PHP upload class that is able to validate requirements and limitations, real file's mime type check, detect the errors and report.
*
* @package Upload
* @version 2.0.5
* @version 2.0.6
* @author Vee W.
*
* @property-read array $predefinedErrorMessages Pre-defined error messages.
Expand Down Expand Up @@ -566,7 +566,7 @@ protected function setErrorMessage(

$error_messages = (isset($this->predefinedErrorMessages[$code]) ? $this->predefinedErrorMessages[$code] : '');

$this->errorMessagesRaw[] = array('message' => $errorAttributes, 'replaces' => $replaceValues);
$this->errorMessagesRaw[] = array('message' => $error_messages, 'replaces' => $replaceValues);
$this->error_messages[] = vsprintf($error_messages, $replaceValues);
$this->error_codes[] = array(
'code' => $code,
Expand Down

0 comments on commit 5934a77

Please sign in to comment.