fix an other PHP 8.0 Error: Non-static method EGroupware\Api\Db::get_column_attribute() cannot be called statically

This commit is contained in:
Ralf Becker 2021-10-11 13:23:26 +02:00
parent c3fb7eda8e
commit 3e17b79d5c

View File

@ -3093,7 +3093,7 @@ class calendar_ical extends calendar_boupdate
}
// if that's not enough --> unset it, as truncating the json gives nothing
if (strlen($event['##'.$attributes['name']]) >
Api\Db::get_column_attribute('cal_extra_value', 'egw_cal_extra', 'calendar', 'precision'))
$GLOBALS['egw']->db->get_column_attribute('cal_extra_value', 'egw_cal_extra', 'calendar', 'precision'))
{
unset($event['##'.$attributes['name']]);
}