diff --git a/api/src/Contacts/Sql.php b/api/src/Contacts/Sql.php index 5c3e1dba57..3dfc932ac2 100644 --- a/api/src/Contacts/Sql.php +++ b/api/src/Contacts/Sql.php @@ -1199,7 +1199,7 @@ class Sql extends Api\Storage unset($this->data['etag']); if (!($err = parent::save(array('contact_etag=contact_etag+1'),array('contact_etag' => $etag)))) { - $this->data['etag'] = $etag+1; + $this->data['etag'] = (int)$etag+1; } else {