Commit f4861679 authored by Jon Pugh's avatar Jon Pugh

Check for property before returning it.

parent ca9bcce2
......@@ -145,7 +145,12 @@ class Context
* @return array
*/
public function getProperty($name) {
return $this->properties[$name];
if (isset($this->properties[$name])) {
return $this->properties[$name];
}
else {
return NULL;
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment