Add curly braces

This commit is contained in:
Romain Neutron
2012-04-26 01:55:12 +02:00
parent ade22295ad
commit 33b10d6746
86 changed files with 2969 additions and 2698 deletions

View File

@@ -203,8 +203,9 @@ class caption_record implements caption_interface, cache_cacheableInterface
public function get_field($fieldname)
{
foreach ($this->get_fields() as $meta_struct_id => $field) {
if ($field->get_name() == $fieldname)
if ($field->get_name() == $fieldname) {
return $field;
}
}
throw new \Exception('Field not found');