Skip to content

Commit

Permalink
FIX: Msf update Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Oct 13, 2020
1 parent 561c198 commit 9ce2f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/splashsync/tests/L10MsfProductsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function objectMsfProductFieldsProvider()
$sequences["[V]".$index]["3"] = true;
}

return empty($sequences)
return !empty($sequences)
? $sequences
: array("Skip" => array("None", "Product", null));
}
Expand Down Expand Up @@ -209,7 +209,7 @@ private function isAllowedFieldForTesting($field): bool
}
//====================================================================//
// Ensure Field is Msf Field
if (is_array($field->options) && isset($field->options["shop"])) {
if (is_array($field->options) && array_key_exists("shop", $field->options)) {
if (MSM::MODE_ALL == $field->options["shop"]) {
return false;
}
Expand Down

0 comments on commit 9ce2f93

Please sign in to comment.