mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
Add curly braces
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user