mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-12 13:31:04 +00:00
fix empty avatar value
This commit is contained in:
parent
126adfe857
commit
be6040dd18
@ -52,7 +52,7 @@ if (isset($_POST) && !empty($_POST)) {
|
||||
$blockId = $_modelBlock->getThisBlock();
|
||||
|
||||
// Avatar provided
|
||||
if (isset($_FILES['avatar']['tmp_name']) && getimagesize($_FILES['avatar']['tmp_name'])) {
|
||||
if (isset($_FILES['avatar']['tmp_name']) && file_exists($_FILES['avatar']['tmp_name']) && getimagesize($_FILES['avatar']['tmp_name'])) {
|
||||
|
||||
// Prepare image
|
||||
$image = new Imagick();
|
||||
|
Loading…
x
Reference in New Issue
Block a user