Remove unnecessary extra object check.

This commit is contained in:
Dave Longley 2013-02-11 10:34:46 -05:00
parent 1dab2c9987
commit 1b676e47fe

View file

@ -3736,7 +3736,7 @@ class JsonLdProcessor {
$item_language = '@null';
}
}
else if(is_object($value)) {
else {
$item_type = '@id';
}
if($common_language === null) {
@ -3783,7 +3783,7 @@ class JsonLdProcessor {
$type_or_language_value = $value->{'@type'};
}
}
else if(is_object($value)) {
else {
$type_or_language = '@type';
$type_or_language_value = '@id';
}