fix PHP 8.0 TypeError: Unsupported operand types: string + int

This commit is contained in:
Ralf Becker 2021-11-13 17:05:20 +01:00
parent 26a8d40c5f
commit 26af55cba6

View File

@ -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
{