forked from friendica/friendica-addons
Fix errors in pnut addon
This commit is contained in:
parent
c0971779c6
commit
7fa2dfc608
1 changed files with 2 additions and 0 deletions
|
@ -1339,6 +1339,8 @@ class phpnut
|
||||||
*/
|
*/
|
||||||
protected function updateUserImage(string $image, string $which='avatar')
|
protected function updateUserImage(string $image, string $which='avatar')
|
||||||
{
|
{
|
||||||
|
$mimeType = '';
|
||||||
|
|
||||||
$test = @getimagesize($image);
|
$test = @getimagesize($image);
|
||||||
if ($test && array_key_exists('mime', $test)) {
|
if ($test && array_key_exists('mime', $test)) {
|
||||||
$mimeType = $test['mime'];
|
$mimeType = $test['mime'];
|
||||||
|
|
Loading…
Reference in a new issue