Fix of warnings in image manager class
This commit is contained in:
@@ -22,11 +22,15 @@ class ImagesManager {
|
|||||||
private $file_size;
|
private $file_size;
|
||||||
|
|
||||||
public function __construct () {
|
public function __construct () {
|
||||||
|
try{
|
||||||
$this->file_name = $_FILES['imageFile']['name'];
|
$this->file_name = $_FILES['imageFile']['name'];
|
||||||
$this->file_type = $_FILES['imageFile']['type'];
|
$this->file_type = $_FILES['imageFile']['type'];
|
||||||
$this->temp_name = $_FILES['imageFile']['tmp_name'];
|
$this->temp_name = $_FILES['imageFile']['tmp_name'];
|
||||||
$this->file_error = $_FILES['imageFile']['error'];
|
$this->file_error = $_FILES['imageFile']['error'];
|
||||||
$this->file_size = $_FILES['imageFile']['size'];
|
$this->file_size = $_FILES['imageFile']['size'];
|
||||||
|
}catch(Exception $e){
|
||||||
|
//NOTHING
|
||||||
|
}
|
||||||
$this->is_validated = false;
|
$this->is_validated = false;
|
||||||
$this->is_name_changed = false;
|
$this->is_name_changed = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user