Skip to content

Azure AD failing if the user has no profile picture #136

@rrroberto

Description

@rrroberto

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

10.0.20

Plugin version

1.4.0

Bug description

Hi,
I configured the plugin to work with M365.
If the user account on M365 has no profile picture I get:

Warning: Trying to access array offset on false in /var/www/glpi/src/Toolbox.php on line 1071
Warning: Trying to access array offset on false in /var/www/glpi/src/Toolbox.php on line 1074

I fixed it by commenting line 1528 in provider.class.php:
//Toolbox::resizePicture($file, $thumb);

Nice plugin, good job, ciao

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions