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;