Fix parenthesis.

This commit is contained in:
Dave Longley 2013-09-14 21:33:34 -04:00
parent 7099ce5d80
commit ded32019d7
1 changed files with 2 additions and 2 deletions

View File

@ -2458,8 +2458,8 @@ class JsonLdProcessor {
array('element' => $rval));
}
else if(property_exists($rval, '@type') &&
!(self::_isAbsoluteIri($rval->{'@type'}) ||
strpos($rval->{'@type'}, '_:')) === 0) {
(!self::_isAbsoluteIri($rval->{'@type'}) ||
strpos($rval->{'@type'}, '_:') === 0)) {
throw new JsonLdException(
'Invalid JSON-LD syntax; an element containing "@value" ' .
'and "@type" must have an absolute IRI for the value ' .