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 b18d1da363
commit e95edf60ec

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
{