1
0
Fork 0
mirror of https://github.com/Findus23/plugin-ProfileAvatar.git synced 2024-09-18 14:13:46 +02:00

potentially fix #2

This commit is contained in:
Lukas Winkler 2021-02-15 10:21:27 +01:00
parent 050afdd6e1
commit 505ca2f057
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -23,7 +23,7 @@ class MonsterIDBase extends AvatarBase
public function __destruct()
{
if ($this->monster) {
if ($this->monster && is_resource($this->monster)) {
imagedestroy($this->monster);
}
}