Skip to content

Commit

Permalink
Update Validator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
h2lsoft authored Jun 30, 2024
1 parent 70f239e commit 775d435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ public function fileUploaded($message='')

public function fileImageWidth($width, $contraint=false, $message='')
{
if(!$this->values || !isset($_FILES[$this->last_input]['tmp_name']) || empty($_FILES[$this->last_input]['tmp_name']) || file_exists($_FILES[$this->last_input]['tmp_name']))return $this;
if(!$this->values || !isset($_FILES[$this->last_input]['tmp_name']) || empty($_FILES[$this->last_input]['tmp_name']) || !file_exists($_FILES[$this->last_input]['tmp_name']))return $this;

list($w, $h) = @getimagesize($_FILES[$this->last_input]['tmp_name']);

Expand All @@ -1006,7 +1006,7 @@ public function fileImageWidth($width, $contraint=false, $message='')

public function fileImageHeight($height, $contraint=false, $message='')
{
if(!$this->values || !isset($_FILES[$this->last_input]['tmp_name']) || empty($_FILES[$this->last_input]['tmp_name']) || file_exists($_FILES[$this->last_input]['tmp_name']))return $this;
if(!$this->values || !isset($_FILES[$this->last_input]['tmp_name']) || empty($_FILES[$this->last_input]['tmp_name']) || !file_exists($_FILES[$this->last_input]['tmp_name']))return $this;

list($w, $h) = @getimagesize($_FILES[$this->last_input]['tmp_name']);

Expand Down

0 comments on commit 775d435

Please sign in to comment.