Skip to content

Commit 3240bab

Browse files
authored
Merge pull request #803 from utopia-php/check-attributes-key-exist
2 parents c2ad814 + 1166bda commit 3240bab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Adapter/SQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ public function getAttributeWidth(Document $collection): int
11101110

11111111
$total = 1067;
11121112

1113-
$attributes = $collection->getAttributes()['attributes'];
1113+
$attributes = $collection->getAttributes()['attributes'] ?? [];
11141114

11151115
foreach ($attributes as $attribute) {
11161116
/**

0 commit comments

Comments
 (0)