forked from friendica/php-json-ld
Fix parenthesis.
This commit is contained in:
parent
c884d39621
commit
42041d08c7
|
@ -2421,8 +2421,8 @@ class JsonLdProcessor {
|
||||||
array('element' => $rval));
|
array('element' => $rval));
|
||||||
}
|
}
|
||||||
else if(property_exists($rval, '@type') &&
|
else if(property_exists($rval, '@type') &&
|
||||||
!self::_isAbsoluteIri($rval->{'@type'}) ||
|
!(self::_isAbsoluteIri($rval->{'@type'}) ||
|
||||||
strpos($rval->{'@type'}, '_:') === 0) {
|
strpos($rval->{'@type'}, '_:')) === 0) {
|
||||||
throw new JsonLdException(
|
throw new JsonLdException(
|
||||||
'Invalid JSON-LD syntax; an element containing "@value" ' .
|
'Invalid JSON-LD syntax; an element containing "@value" ' .
|
||||||
'and "@type" must have an absolute IRI for the value ' .
|
'and "@type" must have an absolute IRI for the value ' .
|
||||||
|
|
Loading…
Reference in a new issue