mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed undefined offset when retrieving something from the thread store that doesn't exist (#919)
This commit is contained in:
@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user