mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
Fixed undefined offset when retrieving something from the thread store that doesn't exist (#919)
This commit is contained in:
parent
4e381ab033
commit
674394c4f5
@ -139,7 +139,7 @@ abstract class AsyncTask extends Collectable{
|
||||
*/
|
||||
public function getFromThreadStore($identifier){
|
||||
global $store;
|
||||
return $this->isGarbage() ? null : $store[$identifier];
|
||||
return ($this->isGarbage() or !isset($store[$identifier])) ? null : $store[$identifier];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user