From a97e34c29a33c658ce6a720c0105670c81ffbc24 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 20 Nov 2023 16:13:11 -0700 Subject: [PATCH] Silence some PHP warnings --- api/src/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Storage.php b/api/src/Storage.php index aded0a349b..4482619542 100644 --- a/api/src/Storage.php +++ b/api/src/Storage.php @@ -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; } /**