Make getMeta in JobOrder entity return null if meta key is not found #270

This commit is contained in:
Kendrick Chan 2020-02-18 09:55:13 +08:00
parent 0f106ea790
commit 39fdf318d4

View file

@ -819,6 +819,10 @@ class JobOrder
public function getMeta($id)
{
// return null if we don't have it
if (!isset($this->meta[$id]))
return null;
return $this->meta[$id];
}