We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b385103 commit 798d05dCopy full SHA for 798d05d
src/Feeds/Target/FractionTarget.php
@@ -71,7 +71,7 @@ protected function prepareValue($delta, array &$values) {
71
switch ($this->configuration['type']) {
72
case 'fraction':
73
// Pull out the numerator and denominator.
74
- $parts = explode('/', $item);
+ $parts = is_string($item) ? explode('/', $item) : [];
75
76
if (!empty($parts[0]) && is_numeric($parts[0]) && !empty($parts[1]) && is_numeric($parts[1]) && $parts[1] >= 0) {
77
$values['numerator'] = $parts[0];
0 commit comments