Skip to content

Commit ead4b65

Browse files
committed
MAGETWO-64802: Implement corrupted data reporting for fieldDataConverter
1 parent 83b8759 commit ead4b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/DB/FieldDataConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function convert(
116116
private function isValidJsonValue($value)
117117
{
118118
if (in_array($value, ['null', 'false', '0', '""', '[]'])
119-
|| (json_decode($value) !== null && !json_last_error())
119+
|| (json_decode($value) !== null && json_last_error() === JSON_ERROR_NONE)
120120
) {
121121
return true;
122122
}

0 commit comments

Comments
 (0)