Skip to content

Commit 0aec633

Browse files
committed
AC-1685: Fix Integration Tests to be compatible with PHP 8.1
1 parent 0bc38f1 commit 0aec633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/GiftMessage/Model/GiftMessageManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function add($giftMessages, $quote)
6464
$giftMessage->load($entity->getGiftMessageId());
6565
}
6666

67-
if (isset($message['message']) && trim($message['message']) == '') {
67+
if ($message['message'] === null || trim($message['message']) == '') {
6868
if ($giftMessage->getId()) {
6969
try {
7070
$giftMessage->delete();

0 commit comments

Comments
 (0)