Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions SetHeaderElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,13 @@ public function getPropertyValue($flowData, $elementKey, $propertyKey){
}

$propertyKey = strtolower($propertyKey);
if (isset($elementData->$propertyKey)) {
// TODO: catch is never called here. Consider replacing it with:
// if (isset($elementData->$propertyKey))
// The change can't be made right now, as it causes device-detection-php
// tests to fail. Further investigation is needed.
try {
$property = $elementData->$propertyKey;
} else {
} catch (Exception $e) {
echo sprintf(Messages::PROPERTY_NOT_FOUND, $propertyKey, $elementKey);
return "";
}
Expand Down