Fixed undefined offset when retrieving something from the thread store that doesn't exist (#919)

This commit is contained in:
Dylan K. Taylor 2017-05-22 06:53:57 +01:00 committed by SOFe
parent 4e381ab033
commit 674394c4f5

View File

@ -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];
}
/**