Silence some PHP warnings

This commit is contained in:
nathan 2023-11-20 16:13:11 -07:00 committed by ralf
parent a06c6118e1
commit a97e34c29a

View File

@ -794,7 +794,7 @@ class Storage extends Storage\Base
*/
function is_cf($field)
{
return $field[0] == self::CF_PREFIX;
return !empty($field) && $field[0] == self::CF_PREFIX;
}
/**