Commit 9485cf0c authored by gdd's avatar gdd

Adding ability to return NULL if a value is not found

parent 9689b0be
......@@ -81,7 +81,9 @@ public function get($key = '') {
return isset($this->data[$key]) ? $this->data[$key] : NULL;
}
else {
return drupal_array_get_nested_value($this->data, $parts);
$key_exists = NULL;
$value = drupal_array_get_nested_value($this->data, $parts, $key_exists);
return $key_exists ? $value : 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