mirror of
https://github.com/Findus23/plugin-ProfileAvatar.git
synced 2024-09-19 15:23:45 +02:00
potentially fix #2
This commit is contained in:
parent
050afdd6e1
commit
505ca2f057
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class MonsterIDBase extends AvatarBase
|
||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
if ($this->monster) {
|
if ($this->monster && is_resource($this->monster)) {
|
||||||
imagedestroy($this->monster);
|
imagedestroy($this->monster);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue