From 441bd6d365ea2de93d34c2fe6d16ac8c1546a402 Mon Sep 17 00:00:00 2001 From: Ralf Kornberger <37985317+rakoitde@users.noreply.github.com> Date: Sat, 8 Oct 2022 17:37:53 +0200 Subject: [PATCH] Update Connection.php Passing null to parameter #2 ($string) of type string is deprecated --- system/Database/MySQLi/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Database/MySQLi/Connection.php b/system/Database/MySQLi/Connection.php index f2a255546cc2..7492095792c3 100644 --- a/system/Database/MySQLi/Connection.php +++ b/system/Database/MySQLi/Connection.php @@ -419,7 +419,7 @@ protected function _fieldData(string $table): array $unsigned = null; sscanf($query[$i]->Type, '%[a-z](%[0-9,]) %[a-z]', $retVal[$i]->type, $retVal[$i]->length, $unsigned); - $exp = explode(',', $retVal[$i]->length); + $exp = explode(',', $retVal[$i]->length ?? ''); $retVal[$i]->max_length = isset($exp[0]) ? (int) $exp[0] : 0; $retVal[$i]->decimal_places = isset($exp[1]) ? (int) $exp[1] : 0;