mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
- check if userfile is set at all
This commit is contained in:
parent
f0dfa127a5
commit
2cd0f8aca0
|
@ -88,7 +88,7 @@ if ($user->getEmail() != $email)
|
|||
if ($user->getComment() != $comment)
|
||||
$user->setComment($comment);
|
||||
|
||||
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
|
||||
if (isset($_FILES["userfile"]) && is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
|
||||
{
|
||||
$lastDotIndex = strrpos(basename($_FILES["userfile"]["name"]), ".");
|
||||
$fileType = substr($_FILES["userfile"]["name"], $lastDotIndex);
|
||||
|
|
Loading…
Reference in New Issue
Block a user