diff --git a/api/src/Page/Contact.php b/api/src/Page/Contact.php index 10807e4c8..64d9e7ef9 100644 --- a/api/src/Page/Contact.php +++ b/api/src/Page/Contact.php @@ -167,7 +167,7 @@ function _add_contact() { foreach ($lfields as $i => $f) { if ($this->has_arg($f)) { $c = $f == 'LABNAME' ? 'NAME' : $f; - $this->db->pq('UPDATE laboratory SET '.$c.'=:1 WHERE laboratoryid=:2', array($this->arg($f), $lab['LABORATORYID'])); + $this->db->pq('UPDATE laboratory SET '.$c.'=:1 WHERE laboratoryid=:2', array($this->arg($f), $lab[0]['LABORATORYID'])); } } }