Commit ea363583 authored by droces's avatar droces

Small fix in set_code_if_exists()

parent 480102c5
......@@ -102,7 +102,7 @@ function set_code_if_exists(&$codes, $code_text, $entity, $field_name, $value_ke
if (! array_key_exists(0, $field_value)) {
return NULL;
if (array_key_exists($value_key, $field_value[0])) {
if (! array_key_exists($value_key, $field_value[0])) {
return NULL;
// return $field_value[0][$value_key];
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