Fix errors in pnut addon
parent
50912fdc17
commit
3f89aa1806
|
@ -1339,6 +1339,8 @@ class phpnut
|
|||
*/
|
||||
protected function updateUserImage(string $image, string $which='avatar')
|
||||
{
|
||||
$mimeType = '';
|
||||
|
||||
$test = @getimagesize($image);
|
||||
if ($test && array_key_exists('mime', $test)) {
|
||||
$mimeType = $test['mime'];
|
||||
|
|
Loading…
Reference in New Issue