fix 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:15:34 +02:00
parent 6d4de34749
commit b7ef766ebb

View File

@ -3082,7 +3082,7 @@ class calendar_ical extends calendar_boupdate
// check if json_encoded attribute is to big for our table // check if json_encoded attribute is to big for our table
if (($attributes['params'] || count($attributes['values']) > 1) && if (($attributes['params'] || count($attributes['values']) > 1) &&
strlen($event['##'.$attributes['name']]) > 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'))
{ {
// store content compressed (Outlook/Exchange HTML garbadge is very good compressable) // store content compressed (Outlook/Exchange HTML garbadge is very good compressable)
if (function_exists('gzcompress')) if (function_exists('gzcompress'))