- πΈπ°Slovakia poker10
As per documentation of
image_load()
:* @return
* An image object or FALSE if there was a problem loading the file.So it is possible that the function returns FALSE. Therefore this looks like a valid fix. +1 to RTBC.
The image_rotate() method expect a stdClass object. The image_load() method can return an image object or FALSE if there was a problem loading the file.
To prevent the typeError we need to check if the image object was successfully loaded.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
As per documentation of image_load()
:
* @return
* An image object or FALSE if there was a problem loading the file.
So it is possible that the function returns FALSE. Therefore this looks like a valid fix. +1 to RTBC.